net.minecraft.world.level.block.entity

public class ChestBlockEntity

extends RandomizableContainerBlockEntity implements LidBlockEntity, TickableBlockEntity

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable, LidBlockEntity, TickableBlockEntity

bwp
net.minecraft.world.level.block.entity.ChestBlockEntity
net.minecraft.class_2595
net.minecraft.block.entity.ChestBlockEntity
net.minecraft.tileentity.ChestTileEntity
net.minecraft.server.v1_15_R1.TileEntityChest

Field summary

Modifier and TypeField
private NonNullList<ItemStack>
i
items
field_11927
inventory
field_145985_p
items
protected float
a
openness
field_11929
animationAngle
field_145989_m
protected float
b
oOpenness
field_11926
lastAnimationAngle
field_145986_n
protected int
c
openCount
field_11928
viewerCount
field_145987_o
viewingCount
private int
j
tickInterval
field_11930
ticksOpen
field_145983_q

Constructor summary

ModifierConstructor
protected (BlockEntityType<?> arg0)
public ()

Method summary

Modifier and TypeMethod
public int
O_()
getContainerSize()
method_5439()
getInvSize()
func_70302_i_()
getSize()
protected Component
g()
getDefaultName()
method_17823()
getContainerName()
func_213907_g()
getContainerName()
public void
a(jt arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
fromTag(CompoundTag arg0)
func_145839_a(CompoundNBT arg0)
load(NBTTagCompound arg0)
public CompoundTag
b(jt arg0)
save(CompoundTag arg0)
method_11007(class_2487 arg0)
toTag(CompoundTag arg0)
func_189515_b(CompoundNBT arg0)
save(NBTTagCompound arg0)
public void
Z_()
tick()
method_16896()
tick()
func_73660_a()
tick()
public static int
a(bjw arg0, bwf arg1, int arg2, int arg3, int arg4, int arg5, int arg6)
getOpenCount(Level arg0, BaseContainerBlockEntity arg1, int arg2, int arg3, int arg4, int arg5, int arg6)
method_20364(class_1937 arg0, class_2624 arg1, int arg2, int arg3, int arg4, int arg5, int arg6)
tickViewerCount(World world, LockableContainerBlockEntity blockEntity, int ticksOpen, int x, int y, int z, int viewerCount)
func_213977_a(World arg0, LockableTileEntity arg1, int arg2, int arg3, int arg4, int arg5, int arg6)
public static int
a(bjw arg0, bwf arg1, int arg2, int arg3, int arg4)
getOpenCount(Level arg0, BaseContainerBlockEntity arg1, int arg2, int arg3, int arg4)
method_17765(class_1937 arg0, class_2624 arg1, int arg2, int arg3, int arg4)
countViewers(World world, LockableContainerBlockEntity container, int ticksOpen, int x, int y)
func_213976_a(World arg0, LockableTileEntity arg1, int arg2, int arg3, int arg4)
private void
a(aah arg0)
playSound(SoundEvent arg0)
method_11050(class_3414 arg0)
playSound(SoundEvent arg0)
func_195483_a(SoundEvent arg0)
public boolean
a_(int arg0, int arg1)
triggerEvent(int arg0, int arg1)
method_11004(int arg0, int arg1)
onBlockAction(int arg0, int arg1)
func_145842_c(int arg0, int arg1)
setProperty(int arg0, int arg1)
public void
a_(ayj arg0)
startOpen(Player arg0)
method_5435(class_1657 arg0)
onInvOpen(PlayerEntity arg0)
func_174889_b(PlayerEntity arg0)
startOpen(EntityHuman arg0)
public void
b_(ayj arg0)
stopOpen(Player arg0)
method_5432(class_1657 arg0)
onInvClose(PlayerEntity arg0)
func_174886_c(PlayerEntity arg0)
closeContainer(EntityHuman arg0)
protected void
h()
signalOpenCount()
method_11049()
onInvOpenOrClose()
func_195482_p()
onOpen()
protected NonNullList<ItemStack>
f()
getItems()
method_11282()
getInvStackList()
func_190576_q()
protected void
a(fy<ben> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
setInvStackList(DefaultedList<ItemStack> arg0)
func_199721_a(NonNullList<ItemStack> arg0)
public static int
a(bjg arg0, fk arg1)
getOpenCount(BlockGetter arg0, BlockPos arg1)
method_11048(class_1922 arg0, class_2338 arg1)
getPlayersLookingInChestCount(BlockView world, BlockPos pos)
func_195481_a(IBlockReader arg0, BlockPos arg1)
public static void
a(bwp arg0, bwp arg1)
swapContents(ChestBlockEntity arg0, ChestBlockEntity arg1)
method_11047(class_2595 arg0, class_2595 arg1)
copyInventory(ChestBlockEntity from, ChestBlockEntity to)
func_199722_a(ChestTileEntity arg0, ChestTileEntity arg1)
protected AbstractContainerMenu
a(int arg0, ayi arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
createContainer(int arg0, PlayerInventory arg1)
func_213906_a(int arg0, PlayerInventory arg1)
createContainer(int arg0, PlayerInventory arg1)
public float
a(float arg0)
getOpenNess(float arg0)
method_11274(float arg0)
getAnimationProgress(float arg0)
func_195480_a(float arg0)