Package net.minecraft.block.entity
Class EnderChestBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.EnderChestBlockEntity
- All Implemented Interfaces:
ChestAnimationProgress
@EnvironmentInterfaces(@EnvironmentInterface(value=CLIENT,itf=ChestAnimationProgress.class)) public class EnderChestBlockEntity extends BlockEntity implements ChestAnimationProgress
-
Field Summary
Fields Modifier and Type Field Description private ChestLidAnimatorlidAnimatorprivate ChestStateManagerstateManagerFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description EnderChestBlockEntity(BlockPos pos, BlockState state) -
Method Summary
Modifier and Type Method Description booleancanPlayerUse(PlayerEntity player)static voidclientTick(World world, BlockPos pos, BlockState state, EnderChestBlockEntity blockEntity)floatgetAnimationProgress(float tickDelta)voidonClose(PlayerEntity player)voidonOpen(PlayerEntity player)voidonScheduledTick()booleanonSyncedBlockEvent(int type, int data)Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromTag, fromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, setCachedState, setWorld, toInitialChunkDataTag, toTag, toUpdatePacket
-
Field Details
-
lidAnimator
-
stateManager
-
-
Constructor Details
-
EnderChestBlockEntity
-
-
Method Details
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, EnderChestBlockEntity blockEntity) -
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data)- Overrides:
onSyncedBlockEventin classBlockEntity
-
onOpen
-
onClose
-
canPlayerUse
-
onScheduledTick
public void onScheduledTick() -
getAnimationProgress
@Environment(CLIENT) public float getAnimationProgress(float tickDelta)- Specified by:
getAnimationProgressin interfaceChestAnimationProgress
-