Class ScribeMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
johnsmith.enchantingoverhauled.menu.scribe.ScribeMenu
public class ScribeMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
The server-side Container Menu bridging the inventory and Scribe logic.
Operates as a pure, thin controller mapping inventory state checks to ScribeRules
and triggering mutations via the ScribeAction command pattern.
-
Field Summary
Fields 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, SLOT_SIZE, slots, SLOTS_PER_ROW -
Constructor Summary
ConstructorsConstructorDescriptionScribeMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory) ScribeMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.inventory.ContainerLevelAccess access) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclickMenuButton(@NotNull net.minecraft.world.entity.player.Player player, int payload) Native interaction payload interceptor.@NotNull net.minecraft.world.item.ItemStackquickMoveStack(@NotNull net.minecraft.world.entity.player.Player player, int index) voidremoved(@NotNull net.minecraft.world.entity.player.Player player) voidslotsChanged(@NotNull net.minecraft.world.Container container) booleanstillValid(@NotNull net.minecraft.world.entity.player.Player player) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Constructor Details
-
ScribeMenu
public ScribeMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory) -
ScribeMenu
public ScribeMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.inventory.ContainerLevelAccess access)
-
-
Method Details
-
slotsChanged
public void slotsChanged(@NotNull @NotNull net.minecraft.world.Container container) - Overrides:
slotsChangedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
clickMenuButton
public boolean clickMenuButton(@NotNull @NotNull net.minecraft.world.entity.player.Player player, int payload) Native interaction payload interceptor. Decodes the payload and passes it to the isolated game controller or command pattern actions.- Overrides:
clickMenuButtonin classnet.minecraft.world.inventory.AbstractContainerMenu
-
removed
public void removed(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - Overrides:
removedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
@NotNull public @NotNull net.minecraft.world.item.ItemStack quickMoveStack(@NotNull @NotNull net.minecraft.world.entity.player.Player player, int index) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
getGridData
-