net.minecraft.world.level.block.entity

public class BarrelBlockEntity

extends RandomizableContainerBlockEntity

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable

cij
net.minecraft.world.level.block.entity.BarrelBlockEntity
net.minecraft.class_3719
net.minecraft.block.entity.BarrelBlockEntity
net.minecraft.src.C_1979_
net.minecraft.world.level.block.entity.TileEntityBarrel

Field summary

Modifier and TypeField
private NonNullList<ItemStack>
b
items
field_16410
inventory
f_58591_
private ContainerOpenersCounter
c
openersCounter
field_27207
stateManager
f_155050_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public CompoundTag
b(na arg0)
save(CompoundTag arg0)
method_11007(class_2487 arg0)
writeNbt(NbtCompound arg0)
m_6945_(C_4917_ arg0)
save(NBTTagCompound arg0)
public void
a(na arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
load(NBTTagCompound arg0)
public int
b()
getContainerSize()
method_5439()
size()
m_6643_()
getSize()
protected NonNullList<ItemStack>
f()
getItems()
method_11282()
getInvStackList()
m_7086_()
protected void
a(gs<bqq> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
setInvStackList(DefaultedList<ItemStack> arg0)
m_6520_(C_4702_<C_1391_> arg0)
protected Component
g()
getDefaultName()
method_17823()
getContainerName()
m_6820_()
getContainerName()
protected AbstractContainerMenu
a(int arg0, bkd arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
createScreenHandler(int arg0, PlayerInventory arg1)
m_6555_(int p_58599_, C_1140_ arg1)
createContainer(int arg0, PlayerInventory arg1)
public void
b_(bke arg0)
startOpen(Player arg0)
method_5435(class_1657 arg0)
onOpen(PlayerEntity arg0)
m_5856_(C_1141_ arg0)
startOpen(EntityHuman arg0)
public void
c_(bke arg0)
stopOpen(Player arg0)
method_5432(class_1657 arg0)
onClose(PlayerEntity arg0)
m_5785_(C_1141_ arg0)
closeContainer(EntityHuman arg0)
public void
h()
recheckOpen()
method_20362()
tick()
m_58619_()
void
a(ckt arg0, boolean arg1)
updateBlockState(BlockState arg0, boolean arg1)
method_18318(class_2680 arg0, boolean arg1)
setOpen(BlockState state, boolean open)
m_58606_(C_2064_ p_58608_, boolean arg1)
setOpenFlag(IBlockData arg0, boolean arg1)
void
a(ckt arg0, afd arg1)
playSound(BlockState arg0, SoundEvent arg1)
method_17764(class_2680 arg0, class_3414 arg1)
playSound(BlockState state, SoundEvent soundEvent)
m_58600_(C_2064_ p_58602_, C_123_ arg1)
playOpenSound(IBlockData arg0, SoundEffect arg1)