Package hiiragi283.lib.gui
Class HTContainerItemSlot
-
- All Implemented Interfaces:
public final class HTContainerItemSlot extends StackCopySlot
-
-
Field Summary
Fields Modifier and Type Field Description private final HTResourceSlot<ItemResource>slotprivate final HTBackgroundTypeslotTypeprivate final BooleanisActiveprivate final IdentifiernoItemIconprivate final IntegermaxStackSizeprivate final IntegerslotIndexprivate final ItemStackitemprivate final IntegercontainerSlotprivate final BooleanisFakeprivate final BooleanisHighlightablepublic final Containercontainerpublic final Integerindexpublic final Integerxpublic final Integery
-
Constructor Summary
Constructors Constructor Description HTContainerItemSlot(HTResourceSlot<ItemResource> slot, Function1<ItemStack, Unit> stackSetter, BiPredicate<ItemResource, HTHandlerAccess> manualFilter, Integer x, Integer y, HTBackgroundType slotType)HTContainerItemSlot(HTBasicItemSlot slot, Integer x, Integer y, HTBackgroundType slotType)
-
Method Summary
Modifier and Type Method Description final HTResourceSlot<ItemResource>getSlot()final HTBackgroundTypegetSlotType()final UnitupdateCount(Integer count)BooleanmayPlace(ItemStack itemStack)IntegergetMaxStackSize()IntegergetMaxStackSize(ItemStack itemStack)BooleanmayPickup(Player player)-
Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, getContainerSlot, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, onQuickCraft, onTake, remove, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove -
Methods inherited from class hiiragi283.lib.gui.HTContainerItemSlot
getMaxStackSize -
Methods inherited from class net.neoforged.neoforge.world.inventory.StackCopySlot
getItem -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTContainerItemSlot
HTContainerItemSlot(HTResourceSlot<ItemResource> slot, Function1<ItemStack, Unit> stackSetter, BiPredicate<ItemResource, HTHandlerAccess> manualFilter, Integer x, Integer y, HTBackgroundType slotType)
-
HTContainerItemSlot
HTContainerItemSlot(HTBasicItemSlot slot, Integer x, Integer y, HTBackgroundType slotType)
-
-
Method Detail
-
getSlot
final HTResourceSlot<ItemResource> getSlot()
-
getSlotType
final HTBackgroundType getSlotType()
-
updateCount
final Unit updateCount(Integer count)
-
getMaxStackSize
Integer getMaxStackSize()
-
getMaxStackSize
Integer getMaxStackSize(ItemStack itemStack)
-
-
-
-