Class HTItemContainerMenu
-
- All Implemented Interfaces:
-
hiiragi283.core.api.inventory.container.HTSyncableMenu
public abstract class HTItemContainerMenu extends HTContainerMenu
InteractionHandとItemStackを受け取るHTContainerMenuの拡張クラスです。
- Since:
0.4.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private final HTDeferredMenuType<?, ?>menuTypeprivate final Inventoryinventoryprivate ItemStackcarriedprivate final MenuType<?>typeprivate final IntegerstateIdprivate final NonNullList<ItemStack>itemspublic final NonNullList<Slot>slotspublic final IntegercontainerId
-
Constructor Summary
Constructors Constructor Description HTItemContainerMenu(HTDeferredMenuType.OnHand<?> menuType, Integer containerId, Inventory inventory, HTItemContainerContext context)
-
Method Summary
Modifier and Type Method Description HTDeferredMenuType<?, ?>getMenuType()final InventorygetInventory()BooleanstillValid(Player player)-
Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addSlotListener, broadcastFullState, canDragTo, canTakeItemForPickAll, clickMenuButton, clicked, findSlot, getCarried, getItems, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidSlotIndex, removeSlotListener, removed, resumeRemoteUpdates, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, suppressRemoteUpdates, transferState -
Methods inherited from class hiiragi283.core.common.inventory.container.HTContainerMenu
broadcastChanges, getTrackedSlot, quickMoveStack, sendAllDataToRemote, track -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTItemContainerMenu
HTItemContainerMenu(HTDeferredMenuType.OnHand<?> menuType, Integer containerId, Inventory inventory, HTItemContainerContext context)
-
-
Method Detail
-
getMenuType
HTDeferredMenuType<?, ?> getMenuType()
-
getInventory
final Inventory getInventory()
-
stillValid
Boolean stillValid(Player player)
-
-
-
-