Package hiiragi283.lib.gui.menu
Class HTContainerWithContextMenu
-
- All Implemented Interfaces:
-
hiiragi283.lib.gui.sync.HTSyncableMenu
public abstract class HTContainerWithContextMenu<C extends Object> extends HTContainerMenu<C>
-
-
Field Summary
Fields Modifier and Type Field Description private final Inventoryinventoryprivate final Ccontextprivate final List<Pair<HTSyncableSlot, HTSyncType>>trackedSlotsprivate 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 final InventorygetInventory()final CgetContext()final List<Pair<HTSyncableSlot, HTSyncType>>getTrackedSlots()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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState -
Methods inherited from class hiiragi283.lib.gui.menu.HTContainerMenu
addTrackedSlot, broadcastChanges, getTrackedSlot, quickMoveStack, sendAllDataToRemote -
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
-
getInventory
final Inventory getInventory()
-
getContext
final C getContext()
-
getTrackedSlots
final List<Pair<HTSyncableSlot, HTSyncType>> getTrackedSlots()
-
-
-
-