net.minecraft.world.level.block.entity

public class BarrelBlockEntity

extends RandomizableContainerBlockEntity

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable

dco
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>
c
items
field_16410
inventory
f_58591_
private final ContainerOpenersCounter
f
openersCounter
field_27207
stateManager
f_155050_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
protected void
b(qw arg0)
saveAdditional(CompoundTag arg0)
method_11007(class_2487 arg0)
writeNbt(NbtCompound arg0)
m_183515_(C_4917_ arg0)
public void
a(qw arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
public int
b()
getContainerSize()
method_5439()
size()
m_6643_()
protected NonNullList<ItemStack>
f()
getItems()
method_11282()
getInvStackList()
m_7086_()
protected void
a(hn<cjf> 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_()
protected AbstractContainerMenu
a(int arg0, cbt 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)
public void
d_(cbu arg0)
startOpen(Player arg0)
method_5435(class_1657 arg0)
onOpen(PlayerEntity arg0)
m_5856_(C_1141_ arg0)
public void
c(cbu arg0)
stopOpen(Player arg0)
method_5432(class_1657 arg0)
onClose(PlayerEntity arg0)
m_5785_(C_1141_ arg0)
public void
i()
recheckOpen()
method_20362()
tick()
m_58619_()
void
a(dfj 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)
void
a(dfj arg0, apc 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)