Enum Class ChunkUpdatePriority

java.lang.Object
java.lang.Enum<ChunkUpdatePriority>
xyz.gmitch215.socketmc.util.option.ChunkUpdatePriority
All Implemented Interfaces:
Serializable, Comparable<ChunkUpdatePriority>, Constable

public enum ChunkUpdatePriority extends Enum<ChunkUpdatePriority>
Represents the priority for chunk updates.
  • Enum Constant Details

    • NONE

      public static final ChunkUpdatePriority NONE
      Chunk updates are not prioritized.
    • PLAYER_AFFECTED

      public static final ChunkUpdatePriority PLAYER_AFFECTED
      Chunk updates are prioritized if a player is nearby.
    • NEARBY

      public static final ChunkUpdatePriority NEARBY
      Chunk updates are prioritized if the client is rendering the chunk.
  • Method Details

    • values

      public static ChunkUpdatePriority[] 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 ChunkUpdatePriority 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
    • byOrdinal

      @NotNull public static @NotNull ChunkUpdatePriority byOrdinal(int ordinal)
      Gets the ChunkUpdatePriority by its ordinal.
      Parameters:
      ordinal - The ordinal
      Returns:
      ChunkUpdatePriority by ordinal