Enum Class PacketHandler.DimensionSectionCount
java.lang.Object
java.lang.Enum<PacketHandler.DimensionSectionCount>
dev.wyck.renderer.packet.PacketHandler.DimensionSectionCount
- All Implemented Interfaces:
Serializable, Comparable<PacketHandler.DimensionSectionCount>, Constable
- Enclosing interface:
PacketHandler
@AsOf("0.0.6")
public static enum PacketHandler.DimensionSectionCount
extends Enum<PacketHandler.DimensionSectionCount>
The number of sections in each dimension.
- Since:
- 0.0.6
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfromBukkitEnvironment(World.Environment environment) Get the DimensionSectionCount from a Bukkit World.EnvironmentintReturns the enum constant of this class with the specified name.static PacketHandler.DimensionSectionCount[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OVERWORLD
from y=-64 to y=320 = 24, each section is 16 blocks high -
NETHER
from y=0 to y=256 = 16 -
END
from y=0 to y=256 = 16
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getSectionCount
public int getSectionCount() -
fromBukkitEnvironment
@AsOf("0.0.6") public static PacketHandler.DimensionSectionCount fromBukkitEnvironment(World.Environment environment) Get the DimensionSectionCount from a Bukkit World.Environment- Parameters:
environment- The Bukkit World.Environment- Returns:
- The corresponding DimensionSectionCount
-