Class HTContainerWithContextMenu
-
- All Implemented Interfaces:
-
hiiragi283.core.api.inventory.container.HTSyncableMenu
public abstract class HTContainerWithContextMenu<C extends Object> extends HTContainerMenu
Cを受け取るHTContainerMenuの拡張クラスです。
- Since:
0.4.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private final HTDeferredMenuType.WithContext<?, C>menuTypeprivate final Ccontextprivate final Inventoryinventoryprivate ItemStackcarriedprivate final MenuType<?>typeprivate final IntegerstateIdprivate final NonNullList<ItemStack>itemspublic final NonNullList<Slot>slotspublic final IntegercontainerId
-
Constructor Summary
Constructors Constructor Description HTContainerWithContextMenu(HTDeferredMenuType.WithContext<?, C> menuType, Integer containerId, Inventory inventory, C context)
-
Method Summary
Modifier and Type Method Description HTDeferredMenuType.WithContext<?, C>getMenuType()final CgetContext()final InventorygetInventory()Unitremoved(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, resumeRemoteUpdates, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, 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
-
HTContainerWithContextMenu
HTContainerWithContextMenu(HTDeferredMenuType.WithContext<?, C> menuType, Integer containerId, Inventory inventory, C context)
-
-
Method Detail
-
getMenuType
HTDeferredMenuType.WithContext<?, C> getMenuType()
-
getContext
final C getContext()
-
getInventory
final Inventory getInventory()
-
-
-
-