Package hiiragi283.core.common.gui
Class HTContainerItemSlot
-
- All Implemented Interfaces:
public class HTContainerItemSlot extends SlotHTItemSlotに基づいたSlotの実装
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumHTContainerItemSlot.Type
-
Field Summary
Fields Modifier and Type Field Description private final HTItemSlotslotprivate final HTContainerItemSlot.TypeslotTypeprivate final BooleanisActiveprivate final Pair<ResourceLocation, ResourceLocation>noItemIconprivate 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(HTItemSlot slot, Integer x, Integer y, Consumer<ItemStack> stackSetter, BiPredicate<HTItemResourceType, HTStorageAccess> manualFilter, HTContainerItemSlot.Type slotType)
-
Method Summary
Modifier and Type Method Description final HTItemSlotgetSlot()final HTContainerItemSlot.TypegetSlotType()final UnitupdateCount(Integer count)BooleanmayPlace(ItemStack stack)ItemStackgetItem()BooleanhasItem()Unitset(ItemStack stack)UnitsetChanged()IntegergetMaxStackSize()IntegergetMaxStackSize(ItemStack stack)BooleanmayPickup(Player player)ItemStackremove(Integer amount)Optional<ItemStack>tryRemove(Integer count, Integer decrement, Player player)final static <SLOT extends HTItemSlot, HTResourceSlot.Basic<HTItemResourceType>> HTContainerItemSlotcreate(SLOT slot, Integer x, Integer y, HTContainerItemSlot.Type slotType)-
Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, getContainerSlot, getNoItemIcon, getSlotIndex, isActive, isFake, isHighlightable, isSameInventory, onQuickCraft, onTake, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setByPlayer -
Methods inherited from class hiiragi283.core.common.gui.HTContainerItemSlot
getItem, getMaxStackSize -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTContainerItemSlot
HTContainerItemSlot(HTItemSlot slot, Integer x, Integer y, Consumer<ItemStack> stackSetter, BiPredicate<HTItemResourceType, HTStorageAccess> manualFilter, HTContainerItemSlot.Type slotType)
-
-
Method Detail
-
getSlot
final HTItemSlot getSlot()
-
getSlotType
final HTContainerItemSlot.Type getSlotType()
-
updateCount
final Unit updateCount(Integer count)
-
getItem
ItemStack getItem()
-
setChanged
Unit setChanged()
-
getMaxStackSize
Integer getMaxStackSize()
-
getMaxStackSize
Integer getMaxStackSize(ItemStack stack)
-
create
final static <SLOT extends HTItemSlot, HTResourceSlot.Basic<HTItemResourceType>> HTContainerItemSlot create(SLOT slot, Integer x, Integer y, HTContainerItemSlot.Type slotType)
-
-
-
-