net.minecraft.world.level.block.entity

public class BarrelBlockEntity

extends RandomizableContainerBlockEntity

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable

cde
net.minecraft.world.level.block.entity.BarrelBlockEntity
net.minecraft.class_3719
net.minecraft.block.entity.BarrelBlockEntity
net.minecraft.tileentity.BarrelTileEntity
net.minecraft.server.v1_16_R1.TileEntityBarrel

Field summary

Modifier and TypeField
private NonNullList<ItemStack>
a
items
field_16410
inventory
field_213966_a
items
private int
b
openCount
field_17583
viewerCount
field_213967_b

Constructor summary

ModifierConstructor
private (BlockEntityType<?> type)
public ()

Method summary

Modifier and TypeMethod
public CompoundTag
a(le arg0)
save(CompoundTag arg0)
method_11007(class_2487 arg0)
toTag(CompoundTag arg0)
func_189515_b(CompoundNBT arg0)
save(NBTTagCompound arg0)
public void
a(cfj arg0, le arg1)
load(BlockState arg0, CompoundTag arg1)
method_11014(class_2680 arg0, class_2487 arg1)
fromTag(BlockState arg0, CompoundTag arg1)
func_230337_a_(BlockState arg0, CompoundNBT arg1)
load(IBlockData arg0, NBTTagCompound arg1)
public int
ab_()
getContainerSize()
method_5439()
size()
func_70302_i_()
getSize()
protected NonNullList<ItemStack>
f()
getItems()
method_11282()
getInvStackList()
func_190576_q()
protected void
a(gi<bki> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
setInvStackList(DefaultedList<ItemStack> arg0)
func_199721_a(NonNullList<ItemStack> arg0)
protected Component
g()
getDefaultName()
method_17823()
getContainerName()
func_213907_g()
getContainerName()
protected AbstractContainerMenu
a(int arg0, beb arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
createScreenHandler(int arg0, PlayerInventory arg1)
func_213906_a(int arg0, PlayerInventory arg1)
createContainer(int arg0, PlayerInventory arg1)
public void
c_(bec arg0)
startOpen(Player arg0)
method_5435(class_1657 arg0)
onOpen(PlayerEntity arg0)
func_174889_b(PlayerEntity arg0)
startOpen(EntityHuman arg0)
private void
j()
scheduleRecheck()
method_20363()
scheduleUpdate()
func_213964_r()
public void
h()
recheckOpen()
method_20362()
tick()
func_213962_h()
public void
b_(bec arg0)
stopOpen(Player arg0)
method_5432(class_1657 arg0)
onClose(PlayerEntity arg0)
func_174886_c(PlayerEntity arg0)
closeContainer(EntityHuman arg0)
private void
a(cfj arg0, boolean arg1)
updateBlockState(BlockState arg0, boolean arg1)
method_18318(class_2680 arg0, boolean arg1)
setOpen(BlockState state, boolean open)
func_213963_a(BlockState arg0, boolean arg1)
private void
a(cfj arg0, ack arg1)
playSound(BlockState arg0, SoundEvent arg1)
method_17764(class_2680 arg0, class_3414 arg1)
playSound(BlockState arg0, SoundEvent arg1)
func_213965_a(BlockState arg0, SoundEvent arg1)