java.lang.Object
com.hypixel.hytale.server.core.universe.world.meta.BlockState
All Implemented Interfaces:
Component<ChunkStore>, Cloneable
Direct Known Subclasses:
BenchState, ItemContainerState, SpawnMarkerBlockState

@Deprecated(forRemoval=true) public abstract class BlockState extends Object implements Component<ChunkStore>
Deprecated, for removal: This API element is subject to removal in a future version.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BuilderCodec<BlockState>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private WorldChunk
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    (package private) final AtomicBoolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private static final com.hypixel.hytale.logger.HytaleLogger
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private Vector3i
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected Ref<ChunkStore>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final KeyedCodec<String>
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Fields inherited from interface com.hypixel.hytale.component.Component

    EMPTY_ARRAY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static BlockState
    ensureState(WorldChunk worldChunk, int x, int y, int z)
    Deprecated.
    private static <C extends Component<ChunkStore>, T extends C>
    ComponentType<ChunkStore,T>
    findComponentType(Archetype<ChunkStore> archetype, Class<C> entityClass)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static BlockState
    getBlockState(int index, ArchetypeChunk<ChunkStore> archetypeChunk)
    Deprecated.
    static BlockState
    Deprecated.
    static BlockState
    getBlockState(Ref<ChunkStore> reference, ComponentAccessor<ChunkStore> componentAccessor)
    Deprecated.
    com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    initialize(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static BlockState
    load(org.bson.BsonDocument doc, WorldChunk chunk, Vector3i pos)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static BlockState
    load(org.bson.BsonDocument doc, WorldChunk chunk, Vector3i pos, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    org.bson.BsonDocument
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setPosition(WorldChunk chunk, Vector3i position)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.hypixel.hytale.component.Component

    cloneSerializable
  • Field Details

    • LOGGER

      private static final com.hypixel.hytale.logger.HytaleLogger LOGGER
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CODEC

      public static final CodecMapCodec<BlockState> CODEC
      Deprecated, for removal: This API element is subject to removal in a future version.
    • BASE_CODEC

      public static final BuilderCodec<BlockState> BASE_CODEC
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TYPE_STRUCTURE

      public static final KeyedCodec<String> TYPE_STRUCTURE
      Deprecated, for removal: This API element is subject to removal in a future version.
    • OPEN_WINDOW

      public static final String OPEN_WINDOW
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • CLOSE_WINDOW

      public static final String CLOSE_WINDOW
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • initialized

      final AtomicBoolean initialized
      Deprecated, for removal: This API element is subject to removal in a future version.
    • chunk

      @Nullable private WorldChunk chunk
      Deprecated, for removal: This API element is subject to removal in a future version.
    • position

      private Vector3i position
      Deprecated, for removal: This API element is subject to removal in a future version.
    • reference

      protected Ref<ChunkStore> reference
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • BlockState

      public BlockState()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setReference

      public void setReference(Ref<ChunkStore> reference)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getReference

      public Ref<ChunkStore> getReference()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • unloadFromWorld

      public void unloadFromWorld()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • initialize

      public boolean initialize(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • onUnload

      public void onUnload()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • validateInitialized

      public void validateInitialized()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getIndex

      public int getIndex()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPosition

      public void setPosition(WorldChunk chunk, @Nullable Vector3i position)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPosition

      public void setPosition(@Nonnull Vector3i position)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPosition

      @Nonnull public Vector3i getPosition()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • __internal_getPosition

      public Vector3i __internal_getPosition()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getBlockX

      public int getBlockX()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getBlockY

      public int getBlockY()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getBlockZ

      public int getBlockZ()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getBlockPosition

      @Nonnull public Vector3i getBlockPosition()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCenteredBlockPosition

      @Nonnull public Vector3d getCenteredBlockPosition()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getChunk

      @Nullable public WorldChunk getChunk()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getBlockType

      @Nullable public com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType getBlockType()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getRotationIndex

      public int getRotationIndex()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • invalidate

      public void invalidate()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • markNeedsSave

      public void markNeedsSave()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • saveToDocument

      public org.bson.BsonDocument saveToDocument()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • clone

      @Nullable public Component<ChunkStore> clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      clone in interface Component<ChunkStore>
      Overrides:
      clone in class Object
    • toHolder

      @Nonnull public Holder<ChunkStore> toHolder()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • load

      @Nullable public static BlockState load(org.bson.BsonDocument doc, @Nonnull WorldChunk chunk, @Nonnull Vector3i pos) throws NoSuchBlockStateException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      NoSuchBlockStateException
    • load

      @Nullable public static BlockState load(org.bson.BsonDocument doc, @Nullable WorldChunk chunk, Vector3i pos, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType) throws NoSuchBlockStateException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      NoSuchBlockStateException
    • ensureState

      @Nullable @Deprecated public static BlockState ensureState(@Nonnull WorldChunk worldChunk, int x, int y, int z)
      Deprecated.
    • getBlockState

      @Deprecated public static BlockState getBlockState(@Nullable Ref<ChunkStore> reference, @Nonnull ComponentAccessor<ChunkStore> componentAccessor)
      Deprecated.
    • getBlockState

      @Nullable @Deprecated public static BlockState getBlockState(int index, @Nonnull ArchetypeChunk<ChunkStore> archetypeChunk)
      Deprecated.
    • getBlockState

      @Nullable @Deprecated public static BlockState getBlockState(@Nonnull Holder<ChunkStore> holder)
      Deprecated.
    • findComponentType

      @Nullable private static <C extends Component<ChunkStore>, T extends C> ComponentType<ChunkStore,T> findComponentType(@Nonnull Archetype<ChunkStore> archetype, @Nonnull Class<C> entityClass)
      Deprecated, for removal: This API element is subject to removal in a future version.