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 ChestLidAnimator
lidAnimator
private ChestStateManager
stateManager
Fields 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 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)
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:
onSyncedBlockEvent
in classBlockEntity
-
onOpen
-
onClose
-
canPlayerUse
-
onScheduledTick
public void onScheduledTick() -
getAnimationProgress
@Environment(CLIENT) public float getAnimationProgress(float tickDelta)- Specified by:
getAnimationProgress
in interfaceChestAnimationProgress
-