Class BlockState
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
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<BlockState> Deprecated, for removal: This API element is subject to removal in a future version.private WorldChunkDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final CodecMapCodec<BlockState> Deprecated, for removal: This API element is subject to removal in a future version.(package private) final AtomicBooleanDeprecated, for removal: This API element is subject to removal in a future version.private static final com.hypixel.hytale.logger.HytaleLoggerDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.private Vector3iDeprecated, 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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.clone()Deprecated, for removal: This API element is subject to removal in a future version.static BlockStateensureState(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 BlockStategetBlockState(int index, ArchetypeChunk<ChunkStore> archetypeChunk) Deprecated.static BlockStategetBlockState(Holder<ChunkStore> holder) Deprecated.static BlockStategetBlockState(Ref<ChunkStore> reference, ComponentAccessor<ChunkStore> componentAccessor) Deprecated.com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypeDeprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.intDeprecated, 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.getChunk()Deprecated, for removal: This API element is subject to removal in a future version.intgetIndex()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.intDeprecated, for removal: This API element is subject to removal in a future version.booleaninitialize(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.voidDeprecated, for removal: This API element is subject to removal in a future version.static BlockStateload(org.bson.BsonDocument doc, WorldChunk chunk, Vector3i pos) Deprecated, for removal: This API element is subject to removal in a future version.static BlockStateload(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.voidDeprecated, for removal: This API element is subject to removal in a future version.voidonUnload()Deprecated, for removal: This API element is subject to removal in a future version.org.bson.BsonDocumentDeprecated, for removal: This API element is subject to removal in a future version.voidsetPosition(Vector3i position) Deprecated, for removal: This API element is subject to removal in a future version.voidsetPosition(WorldChunk chunk, Vector3i position) Deprecated, for removal: This API element is subject to removal in a future version.voidsetReference(Ref<ChunkStore> reference) Deprecated, for removal: This API element is subject to removal in a future version.toHolder()Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, 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, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
LOGGER
private static final com.hypixel.hytale.logger.HytaleLogger LOGGERDeprecated, for removal: This API element is subject to removal in a future version. -
CODEC
Deprecated, for removal: This API element is subject to removal in a future version. -
BASE_CODEC
Deprecated, for removal: This API element is subject to removal in a future version. -
TYPE_STRUCTURE
Deprecated, for removal: This API element is subject to removal in a future version. -
OPEN_WINDOW
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
CLOSE_WINDOW
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
initialized
Deprecated, for removal: This API element is subject to removal in a future version. -
chunk
Deprecated, for removal: This API element is subject to removal in a future version. -
position
Deprecated, for removal: This API element is subject to removal in a future version. -
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
Deprecated, for removal: This API element is subject to removal in a future version. -
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
Deprecated, for removal: This API element is subject to removal in a future version. -
setPosition
Deprecated, for removal: This API element is subject to removal in a future version. -
getPosition
Deprecated, for removal: This API element is subject to removal in a future version. -
__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
Deprecated, for removal: This API element is subject to removal in a future version. -
getCenteredBlockPosition
Deprecated, for removal: This API element is subject to removal in a future version. -
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
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
clonein interfaceComponent<ChunkStore>- Overrides:
clonein classObject
-
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
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.
-