Package org.moddingx.libx.menu
Class BlockMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
org.moddingx.libx.menu.MenuBase
org.moddingx.libx.menu.DefaultMenu
org.moddingx.libx.menu.BlockMenu
- Direct Known Subclasses:
BlockEntityMenu
A
DefaultMenu for menus related to a block in the world.-
Field Summary
FieldsFields inherited from class org.moddingx.libx.menu.DefaultMenu
firstInventorySlot, firstOutputSlot, level, playerFields inherited from class org.moddingx.libx.menu.MenuBase
playerInventoryFields 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
ConstructorsConstructorDescriptionBlockMenu(net.minecraft.world.inventory.MenuType<? extends BlockMenu> type, int windowId, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.player.Inventory inventory, int firstOutputSlot, int firstInventorySlot) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.BlockPosgetPos()booleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from class org.moddingx.libx.menu.DefaultMenu
getLevel, quickMoveStackMethods inherited from class org.moddingx.libx.menu.MenuBase
addSlotBox, addSlotBox, addSlotRange, addSlotRange, layoutPlayerInventorySlots, moveItemStackToMethods 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, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
pos
protected final net.minecraft.core.BlockPos pos
-
-
Constructor Details
-
BlockMenu
public BlockMenu(@Nullable net.minecraft.world.inventory.MenuType<? extends BlockMenu> type, int windowId, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.player.Inventory inventory, int firstOutputSlot, int firstInventorySlot)
-
-
Method Details
-
stillValid
- Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
getPos
public net.minecraft.core.BlockPos getPos()
-