net.minecraft.world.level.block.entity

public class ChestBlockEntity

extends RandomizableContainerBlockEntity implements LidBlockEntity

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable, RandomizableContainer, LidBlockEntity

dve
net.minecraft.world.level.block.entity.ChestBlockEntity
net.minecraft.class_2595
net.minecraft.block.entity.ChestBlockEntity
net.minecraft.world.level.block.entity.TileEntityChest

Field summary

Modifier and TypeField
private static final int
d
EVENT_SET_OPEN_COUNT
field_31332
VIEWER_COUNT_UPDATE_EVENT_TYPE
private NonNullList<ItemStack>
e
items
field_11927
inventory
private final ContainerOpenersCounter
f
openersCounter
field_27209
stateManager
private final ChestLidController
g
chestLidController
field_27210
lidAnimator

Constructor summary

ModifierConstructor
protected (BlockEntityType<?> arg0, BlockPos arg1, BlockState arg2)
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public int
b()
getContainerSize()
method_5439()
size()
protected Component
j()
getDefaultName()
method_17823()
getContainerName()
protected void
a(ux arg0, js$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
protected void
b(ux arg0, js$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
public static void
a(dhi arg0, jh arg1, dxv arg2, dve arg3)
lidAnimateTick(Level arg0, BlockPos arg1, BlockState arg2, ChestBlockEntity arg3)
method_31670(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2595 arg3)
clientTick(World world, BlockPos pos, BlockState state, ChestBlockEntity blockEntity)
static void
a(dhi arg0, jh arg1, dxv arg2, axe arg3)
playSound(Level arg0, BlockPos arg1, BlockState arg2, SoundEvent arg3)
method_11050(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_3414 arg3)
playSound(World world, BlockPos pos, BlockState state, SoundEvent soundEvent)
public boolean
a_(int arg0, int arg1)
triggerEvent(int arg0, int arg1)
method_11004(int arg0, int arg1)
onSyncedBlockEvent(int arg0, int arg1)
public void
c_(cpx arg0)
startOpen(Player arg0)
method_5435(class_1657 arg0)
onOpen(PlayerEntity arg0)
public void
c(cpx arg0)
stopOpen(Player arg0)
method_5432(class_1657 arg0)
onClose(PlayerEntity arg0)
protected NonNullList<ItemStack>
f()
getItems()
method_11282()
getHeldStacks()
protected void
a(jz<cxp> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
setHeldStacks(DefaultedList<ItemStack> arg0)
public float
a(float arg0)
getOpenNess(float arg0)
method_11274(float arg0)
getAnimationProgress(float arg0)
public static int
a(dgn arg0, jh arg1)
getOpenCount(BlockGetter arg0, BlockPos arg1)
method_11048(class_1922 arg0, class_2338 arg1)
getPlayersLookingInChestCount(BlockView world, BlockPos pos)
public static void
a(dve arg0, dve arg1)
swapContents(ChestBlockEntity arg0, ChestBlockEntity arg1)
method_11047(class_2595 arg0, class_2595 arg1)
copyInventory(ChestBlockEntity from, ChestBlockEntity to)
protected AbstractContainerMenu
a(int arg0, cpw arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
createScreenHandler(int arg0, PlayerInventory arg1)
public void
k()
recheckOpen()
method_31671()
onScheduledTick()
protected void
a(dhi arg0, jh arg1, dxv arg2, int arg3, int arg4)
signalOpenCount(Level arg0, BlockPos arg1, BlockState arg2, int arg3, int arg4)
method_11049(class_1937 arg0, class_2338 arg1, class_2680 arg2, int arg3, int arg4)
onViewerCountUpdate(World world, BlockPos pos, BlockState state, int oldViewerCount, int newViewerCount)