net.minecraft.world.level.block.entity

public class DispenserBlockEntity

extends RandomizableContainerBlockEntity

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable, RandomizableContainer

dhn
net.minecraft.world.level.block.entity.DispenserBlockEntity
net.minecraft.class_2601
net.minecraft.block.entity.DispenserBlockEntity
net.minecraft.src.C_2004_
net.minecraft.world.level.block.entity.TileEntityDispenser

Field summary

Modifier and TypeField
public static final int
e
CONTAINER_SIZE
field_31340
INVENTORY_SIZE
f_155487_
private NonNullList<ItemStack>
f
items
field_11945
inventory
f_59228_

Constructor summary

ModifierConstructor
protected (BlockEntityType<?> p_155490_, BlockPos p_155491_, BlockState arg2)
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public int
b()
getContainerSize()
method_5439()
size()
m_6643_()
public int
a(auv arg0)
getRandomSlot(RandomSource arg0)
method_11076(class_5819 arg0)
chooseNonEmptySlot(Random random)
m_222761_(C_212974_ arg0)
public int
a(cmy arg0)
addItem(ItemStack arg0)
method_11075(class_1799 arg0)
addToFirstFreeSlot(ItemStack stack)
m_59237_(C_1391_ arg0)
protected Component
l()
getDefaultName()
method_17823()
getContainerName()
m_6820_()
public void
a(sn arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
protected void
b(sn arg0)
saveAdditional(CompoundTag arg0)
method_11007(class_2487 arg0)
writeNbt(NbtCompound arg0)
m_183515_(C_4917_ arg0)
protected NonNullList<ItemStack>
k()
getItems()
method_11282()
method_11282()
m_7086_()
protected void
a(iq<cmy> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
setInvStackList(DefaultedList<ItemStack> arg0)
m_6520_(C_4702_<C_1391_> arg0)
protected AbstractContainerMenu
a(int arg0, cfh arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
createScreenHandler(int arg0, PlayerInventory arg1)
m_6555_(int p_59236_, C_1140_ arg1)