Package hiiragi283.lib.gui.menu
Class HTBlockEntityContainerMenu
-
- All Implemented Interfaces:
-
hiiragi283.lib.gui.sync.HTSyncableMenu
public class HTBlockEntityContainerMenu<BE extends HTBlockEntity> extends HTContainerWithContextMenu<BE>
-
-
Field Summary
Fields Modifier and Type Field Description private final Inventoryinventoryprivate final BEcontextprivate 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 HTBlockEntityContainerMenu(HTDeferredMenuType.WithContext<?, BE> menuType, Integer containerId, Inventory inventory, BE context)
-
Method Summary
Modifier and Type Method Description final InventorygetInventory()final BEgetContext()final List<Pair<HTSyncableSlot, HTSyncType>>getTrackedSlots()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, resumeRemoteUpdates, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, suppressRemoteUpdates, transferState -
Methods inherited from class hiiragi283.lib.gui.menu.HTContainerWithContextMenu
removed -
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
-
HTBlockEntityContainerMenu
HTBlockEntityContainerMenu(HTDeferredMenuType.WithContext<?, BE> menuType, Integer containerId, Inventory inventory, BE context)
-
-
Method Detail
-
getInventory
final Inventory getInventory()
-
getContext
final BE getContext()
-
getTrackedSlots
final List<Pair<HTSyncableSlot, HTSyncType>> getTrackedSlots()
-
stillValid
Boolean stillValid(Player player)
-
-
-
-