Package net.minecraft.block.entity
Class EnderChestBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.EnderChestBlockEntity
- All Implemented Interfaces:
ChestAnimationProgress,Tickable
@EnvironmentInterfaces(@EnvironmentInterface(value=CLIENT,itf=ChestAnimationProgress.class)) public class EnderChestBlockEntity extends BlockEntity implements ChestAnimationProgress, Tickable
-
Field Summary
Fields Modifier and Type Field Description floatanimationProgressfloatlastAnimationProgressprivate intticksintviewerCountFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description EnderChestBlockEntity() -
Method Summary
Modifier and Type Method Description booleancanPlayerUse(PlayerEntity playerEntity)floatgetAnimationProgress(float tickDelta)voidmarkRemoved()voidonClose()voidonOpen()booleanonSyncedBlockEvent(int type, int data)voidtick()Methods inherited from class net.minecraft.block.entity.BlockEntity
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, fromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, populateCrashReport, resetBlock, setLocation, setPos, toInitialChunkDataTag, toTag, toUpdatePacket
-
Field Details
-
animationProgress
public float animationProgress -
lastAnimationProgress
public float lastAnimationProgress -
viewerCount
public int viewerCount -
ticks
private int ticks
-
-
Constructor Details
-
EnderChestBlockEntity
public EnderChestBlockEntity()
-
-
Method Details
-
tick
public void tick() -
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data)- Overrides:
onSyncedBlockEventin classBlockEntity
-
markRemoved
public void markRemoved()- Overrides:
markRemovedin classBlockEntity
-
onOpen
public void onOpen() -
onClose
public void onClose() -
canPlayerUse
-
getAnimationProgress
@Environment(CLIENT) public float getAnimationProgress(float tickDelta)- Specified by:
getAnimationProgressin interfaceChestAnimationProgress
-