net.minecraft.world.level.block.entity

public abstract class BaseContainerBlockEntity

extends BlockEntity implements Container, MenuProvider, Nameable

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable

dcp
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.minecraft.class_2624
net.minecraft.block.entity.LockableContainerBlockEntity
net.minecraft.src.C_1980_
net.minecraft.world.level.block.entity.TileEntityContainer

Field summary

Modifier and TypeField
private LockCode
c
lockKey
field_12045
lock
f_58621_
private Component
d
name
field_17376
customName
f_58622_

Constructor summary

ModifierConstructor
protected (BlockEntityType<?> p_155077_, BlockPos p_155078_, BlockState arg2)

Method summary

Modifier and TypeMethod
public void
a(qw arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
protected void
b(qw arg0)
saveAdditional(CompoundTag arg0)
method_11007(class_2487 arg0)
writeNbt(NbtCompound arg0)
m_183515_(C_4917_ arg0)
public void
a(tl arg0)
setCustomName(Component arg0)
method_17488(class_2561 arg0)
setCustomName(Text customName)
m_58638_(C_4996_ arg0)
public Component
ab()
getName()
method_5477()
getName()
m_7755_()
public Component
N_()
getDisplayName()
method_5476()
getDisplayName()
m_5446_()
public Component
ad()
getCustomName()
method_5797()
getCustomName()
m_7770_()
protected abstract Component
g()
getDefaultName()
method_17823()
getContainerName()
m_6820_()
public boolean
d(cbu arg0)
canOpen(Player arg0)
method_17489(class_1657 arg0)
checkUnlocked(PlayerEntity player)
m_7525_(C_1141_ arg0)
public static boolean
a(cbu arg0, bha arg1, tl arg2)
canUnlock(Player arg0, LockCode arg1, Component arg2)
method_17487(class_1657 arg0, class_1273 arg1, class_2561 arg2)
checkUnlocked(PlayerEntity player, ContainerLock lock, Text containerName)
m_58629_(C_1141_ p_58630_, C_473_ p_58631_, C_4996_ p_58632_)
public AbstractContainerMenu
createMenu(int arg0, cbt arg1, cbu arg2)
createMenu(int arg0, Inventory arg1, Player arg2)
createMenu(int arg0, class_1661 arg1, class_1657 arg2)
createMenu(int arg0, PlayerInventory arg1, PlayerEntity arg2)
m_7208_(int p_58642_, C_1140_ p_58643_, C_1141_ arg2)
protected abstract AbstractContainerMenu
a(int arg0, cbt arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
createScreenHandler(int syncId, PlayerInventory playerInventory)
m_6555_(int p_58628_, C_1140_ arg1)