Package hiiragi283.core.common.gui.menu
Class HTWidgetContainerMenu
-
- All Implemented Interfaces:
-
hiiragi283.core.api.gui.sync.HTSyncableMenu
public final class HTWidgetContainerMenu extends HTContainerMenu<HTWidgetHolderContext>
HTWidgetHolderに基づいたHTContainerMenuの拡張クラスです。
-
-
Field Summary
Fields Modifier and Type Field Description private final HTWidgetHolderwidgetHolderprivate final Inventoryinventoryprivate final HTWidgetHolderContextcontextprivate 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 HTWidgetContainerMenu(MenuType<?> menuType, Integer containerId, Inventory inventory, HTWidgetHolderContext context)
-
Method Summary
Modifier and Type Method Description final HTWidgetHoldergetWidgetHolder()final InventorygetInventory()final HTWidgetHolderContextgetContext()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, removed, resumeRemoteUpdates, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, suppressRemoteUpdates, transferState -
Methods inherited from class hiiragi283.core.common.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
-
HTWidgetContainerMenu
HTWidgetContainerMenu(MenuType<?> menuType, Integer containerId, Inventory inventory, HTWidgetHolderContext context)
-
-
Method Detail
-
getWidgetHolder
final HTWidgetHolder getWidgetHolder()
-
getInventory
final Inventory getInventory()
-
getContext
final HTWidgetHolderContext getContext()
-
getTrackedSlots
final List<Pair<HTSyncableSlot, HTSyncType>> getTrackedSlots()
-
stillValid
Boolean stillValid(Player player)
-
-
-
-