Enum Class ChunkLifecycle

java.lang.Object
java.lang.Enum<ChunkLifecycle>
dev.booky.betterview.api.ChunkLifecycle
All Implemented Interfaces:
Serializable, Comparable<ChunkLifecycle>, Constable

@NullMarked public enum ChunkLifecycle extends Enum<ChunkLifecycle>
  • Enum Constant Details

    • UNLOADED

      public static final ChunkLifecycle UNLOADED
      Means the player doesn't know about this chunk as neither BetterView nor the server has sent it to them.
    • SERVER_LOADED

      public static final ChunkLifecycle SERVER_LOADED
      The player knows about this chunk as the server has sent it to them.
    • BV_QUEUED

      public static final ChunkLifecycle BV_QUEUED
      The chunk is currently in the process of being loaded by BetterView off-thread (e.g. currently being generated or read from disk).
    • BV_LOADED

      public static final ChunkLifecycle BV_LOADED
      The player knows about this chunk as BetterVie has sent it to them.
  • Method Details

    • values

      public static ChunkLifecycle[] 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 ChunkLifecycle 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
    • isLoaded

      public boolean isLoaded()
      Returns:
      whether the player has received this chunk.
    • isOwned

      public boolean isOwned()
      Returns:
      whether this chunk is currently solely managed by BetterView.