Enum Class ChunkFlag

java.lang.Object
java.lang.Enum<ChunkFlag>
com.hypixel.hytale.server.core.universe.world.chunk.ChunkFlag
All Implemented Interfaces:
Flag, Serializable, Comparable<ChunkFlag>, Constable

public enum ChunkFlag extends Enum<ChunkFlag> implements Flag
Since:
2020/02/04
Version:
1.0
  • Enum Constant Details

    • NEWLY_GENERATED

      public static final ChunkFlag NEWLY_GENERATED
      Set: chunk was newly generated. Not set: chunk was loaded from disk or some other means.
    • ON_DISK

      public static final ChunkFlag ON_DISK
      If set the chunk has a column record on disk (loaded from disk, or saved at least once this session). May still be dirty/outdated.
    • NEEDS_FORMAT_REWRITE

      public static final ChunkFlag NEEDS_FORMAT_REWRITE
      Set when a chunk column was loaded from a pre-split-CF on-disk blob (embedded sections and/or an EntityChunk). Such a column must have its entire contents (column, every ChunkSection and EntitySection) written on the next save: the save path strips the embedded copy from the blob but persists only dirty sections, so a partial rewrite would drop clean terrain and a never-rewritten blob keeps re-running MigrateEntityChunk and duplicating entities on every load.
  • Method Details

    • values

      public static ChunkFlag[] 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 ChunkFlag 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
    • mask

      public int mask()
      Specified by:
      mask in interface Flag