@EnvironmentInterfaces(value=@EnvironmentInterface(value=CLIENT,itf=ChestAnimationProgress.class)) public class EnderChestBlockEntity extends BlockEntity implements ChestAnimationProgress
| Modifier and Type | Field and Description |
|---|---|
private ChestLidAnimator |
lidAnimator |
private ChestStateManager |
stateManager |
pos, removed, world| Constructor and Description |
|---|
EnderChestBlockEntity(BlockPos pos,
BlockState state) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlayerUse(PlayerEntity player) |
static void |
clientTick(World world,
BlockPos pos,
BlockState state,
EnderChestBlockEntity blockEntity) |
float |
getAnimationProgress(float tickDelta) |
void |
onClose(PlayerEntity player) |
void |
onOpen(PlayerEntity player) |
void |
onScheduledTick() |
boolean |
onSyncedBlockEvent(int type,
int data) |
cancelRemoval, copyItemDataRequiresOperator, createFromTag, fromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, setCachedState, setWorld, toInitialChunkDataTag, toTag, toUpdatePacketprivate final ChestLidAnimator lidAnimator
private final ChestStateManager stateManager
public EnderChestBlockEntity(BlockPos pos, BlockState state)
public static void clientTick(World world, BlockPos pos, BlockState state, EnderChestBlockEntity blockEntity)
public boolean onSyncedBlockEvent(int type,
int data)
onSyncedBlockEvent in class BlockEntitypublic void onOpen(PlayerEntity player)
public void onClose(PlayerEntity player)
public boolean canPlayerUse(PlayerEntity player)
public void onScheduledTick()
@Environment(value=CLIENT) public float getAnimationProgress(float tickDelta)
getAnimationProgress in interface ChestAnimationProgress