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
  • Enum Constant Details

  • Method Details

    • values

      public static PacketHandler.DimensionSectionCount[] 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

      public static PacketHandler.DimensionSectionCount valueOf(String name)
      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 name
      NullPointerException - 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