@EnvironmentInterfaces(value=@EnvironmentInterface(value=CLIENT,itf=ChestAnimationProgress.class)) public class EnderChestBlockEntity extends BlockEntity implements ChestAnimationProgress, Tickable
Modifier and Type | Field and Description |
---|---|
float |
animationProgress |
float |
lastAnimationProgress |
private int |
ticks |
int |
viewerCount |
pos, removed, world
Constructor and Description |
---|
EnderChestBlockEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
canPlayerUse(PlayerEntity playerEntity) |
float |
getAnimationProgress(float tickDelta) |
void |
markRemoved() |
void |
onClose() |
void |
onOpen() |
boolean |
onSyncedBlockEvent(int type,
int data) |
void |
tick() |
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, fromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, populateCrashReport, resetBlock, setLocation, setPos, toInitialChunkDataTag, toTag, toUpdatePacket
public float animationProgress
public float lastAnimationProgress
public int viewerCount
private int ticks
public boolean onSyncedBlockEvent(int type, int data)
onSyncedBlockEvent
in class BlockEntity
public void markRemoved()
markRemoved
in class BlockEntity
public void onOpen()
public void onClose()
public boolean canPlayerUse(PlayerEntity playerEntity)
@Environment(value=CLIENT) public float getAnimationProgress(float tickDelta)
getAnimationProgress
in interface ChestAnimationProgress