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 float
animationProgress
float
lastAnimationProgress
private int
ticks
int
viewerCount
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description EnderChestBlockEntity()
-
Method Summary
Modifier and Type Method Description boolean
canPlayerUse(PlayerEntity playerEntity)
float
getAnimationProgress(float tickDelta)
void
markRemoved()
void
onClose()
void
onOpen()
boolean
onSyncedBlockEvent(int type, int data)
void
tick()
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:
onSyncedBlockEvent
in classBlockEntity
-
markRemoved
public void markRemoved()- Overrides:
markRemoved
in classBlockEntity
-
onOpen
public void onOpen() -
onClose
public void onClose() -
canPlayerUse
-
getAnimationProgress
@Environment(CLIENT) public float getAnimationProgress(float tickDelta)- Specified by:
getAnimationProgress
in interfaceChestAnimationProgress
-