net.minecraft.world.level.block.entity

public class DispenserBlockEntity

extends RandomizableContainerBlockEntity

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable, RandomizableContainer

dvr
net.minecraft.world.level.block.entity.DispenserBlockEntity
net.minecraft.class_2601
net.minecraft.block.entity.DispenserBlockEntity
net.minecraft.world.level.block.entity.TileEntityDispenser

Field summary

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

Constructor summary

ModifierConstructor
protected (BlockEntityType<?> arg0, BlockPos arg1, BlockState arg2)
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public int
b()
getContainerSize()
method_5439()
size()
public int
a(bam arg0)
getRandomSlot(RandomSource arg0)
method_11076(class_5819 arg0)
chooseNonEmptySlot(Random random)
public ItemStack
b(cxp arg0)
insertItem(ItemStack arg0)
method_11075(class_1799 arg0)
addToFirstFreeSlot(ItemStack stack)
protected Component
j()
getDefaultName()
method_17823()
getContainerName()
protected void
a(ux arg0, js$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
protected void
b(ux arg0, js$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
protected NonNullList<ItemStack>
f()
getItems()
method_11282()
getHeldStacks()
protected void
a(jz<cxp> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
setHeldStacks(DefaultedList<ItemStack> arg0)
protected AbstractContainerMenu
a(int arg0, cpw arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
createScreenHandler(int arg0, PlayerInventory arg1)