Package top.girlkisser.lazuli.api.menu
Class AbstractBlockEntityContainer<T extends net.minecraft.world.level.block.entity.BlockEntity>
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
top.girlkisser.lazuli.api.menu.AbstractLazuliContainer
top.girlkisser.lazuli.api.menu.AbstractBlockEntityContainer<T>
- Type Parameters:
T- The block entity's that this menu is for.
public abstract class AbstractBlockEntityContainer<T extends net.minecraft.world.level.block.entity.BlockEntity>
extends AbstractLazuliContainer
A generic class for containers/menus for a block entity.
-
Nested Class Summary
Nested classes/interfaces inherited from class top.girlkisser.lazuli.api.menu.AbstractLazuliContainer
AbstractLazuliContainer.SlotFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.world.level.block.BlockThe container's block.final TThe container block entity.final net.minecraft.core.BlockPosThe container block entity's position.Fields inherited from class top.girlkisser.lazuli.api.menu.AbstractLazuliContainer
playerInventory, slotCountFields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots -
Constructor Summary
ConstructorsConstructorDescriptionAbstractBlockEntityContainer(net.minecraft.world.inventory.MenuType<?> menuType, net.minecraft.world.level.block.Block block, int slotCount, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.core.BlockPos pos) A generic class for containers/menus for a block entity. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from class top.girlkisser.lazuli.api.menu.AbstractLazuliContainer
addOutputSlotBox, addOutputSlotRange, addPlayerInventorySlots, addSlotBox, addSlotBox, addSlotRange, addSlotRange, getPlayerInventory, quickMoveStackMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
pos
public final net.minecraft.core.BlockPos posThe container block entity's position. -
blockEntity
The container block entity. -
block
protected final net.minecraft.world.level.block.Block blockThe container's block.
-
-
Constructor Details
-
AbstractBlockEntityContainer
public AbstractBlockEntityContainer(net.minecraft.world.inventory.MenuType<?> menuType, net.minecraft.world.level.block.Block block, int slotCount, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.core.BlockPos pos) A generic class for containers/menus for a block entity.- Parameters:
menuType- The menu type.block- The block.slotCount- The amount of slots in the container.containerId- The container ID.playerInventory- The player's inventory.pos- The position of the block.
-
-
Method Details
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-