Class TreasureChestState
java.lang.Object
com.hypixel.hytale.server.core.universe.world.meta.BlockState
com.hypixel.hytale.server.core.universe.world.meta.state.ItemContainerState
com.hypixel.hytale.builtin.adventure.objectives.blockstates.TreasureChestState
- All Implemented Interfaces:
Component<ChunkStore>,BreakValidatedBlockState,DestroyableBlockState,ItemContainerBlockState,MarkerBlockState,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.core.universe.world.meta.state.ItemContainerState
ItemContainerState.ItemContainerStateData -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UUIDstatic final BuilderCodec<TreasureChestState> protected UUIDprotected booleanFields inherited from class com.hypixel.hytale.server.core.universe.world.meta.state.ItemContainerState
allowViewing, custom, droplist, itemContainer, markerFields inherited from class com.hypixel.hytale.server.core.universe.world.meta.BlockState
BASE_CODEC, CLOSE_WINDOW, OPEN_WINDOW, reference, TYPE_STRUCTUREFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDestroy(Ref<EntityStore> playerRef, ComponentAccessor<EntityStore> componentAccessor) booleancanOpen(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidonOpen(Ref<EntityStore> ref, World world, Store<EntityStore> store) voidsetObjectiveData(UUID objectiveUUID, UUID chestUUID, List<ItemStack> itemStacks) voidsetOpened(boolean opened) Methods inherited from class com.hypixel.hytale.server.core.universe.world.meta.state.ItemContainerState
getDroplist, getItemContainer, getWindows, initialize, isAllowViewing, onDestroy, onItemChange, setAllowViewing, setCustom, setDroplist, setItemContainer, setMarkerMethods inherited from class com.hypixel.hytale.server.core.universe.world.meta.BlockState
__internal_getPosition, clone, ensureState, getBlockPosition, getBlockState, getBlockState, getBlockState, getBlockType, getBlockX, getBlockY, getBlockZ, getCenteredBlockPosition, getChunk, getIndex, getPosition, getReference, getRotationIndex, invalidate, load, load, markNeedsSave, onUnload, saveToDocument, setPosition, setPosition, setReference, toHolder, unloadFromWorld, validateInitializedMethods 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
-
CODEC
-
objectiveUUID
-
chestUUID
-
opened
protected boolean opened
-
-
Constructor Details
-
TreasureChestState
public TreasureChestState()
-
-
Method Details
-
canOpen
public boolean canOpen(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
canOpenin classItemContainerState
-
canDestroy
public boolean canDestroy(@Nonnull Ref<EntityStore> playerRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
canDestroyin interfaceBreakValidatedBlockState
-
onOpen
public void onOpen(@Nonnull Ref<EntityStore> ref, @Nonnull World world, @Nonnull Store<EntityStore> store) - Overrides:
onOpenin classItemContainerState
-
setOpened
public void setOpened(boolean opened) -
setObjectiveData
-