Package hiiragi283.core.common.gui
Class HTContainerItemSlot
-
- All Implemented Interfaces:
public class HTContainerItemSlot extends SlotHTItemSlotに基づいたSlotの実装
-
-
Field Summary
Fields Modifier and Type Field Description private final HTResourceSlot<HTItemResourceType>slotprivate final HTBackgroundTypeslotTypeprivate 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(HTResourceSlot<HTItemResourceType> slot, Integer x, Integer y, Consumer<ItemStack> stackSetter, BiPredicate<HTItemResourceType, HTStorageAccess> manualFilter, HTBackgroundType slotType)
-
Method Summary
Modifier and Type Method Description final HTResourceSlot<HTItemResourceType>getSlot()final HTBackgroundTypegetSlotType()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)StringtoString()final static HTContainerItemSlotcreate(HTItemStackResourceSlot slot, Integer x, Integer y, HTBackgroundType 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(HTResourceSlot<HTItemResourceType> slot, Integer x, Integer y, Consumer<ItemStack> stackSetter, BiPredicate<HTItemResourceType, HTStorageAccess> manualFilter, HTBackgroundType slotType)
-
-
Method Detail
-
getSlot
final HTResourceSlot<HTItemResourceType> getSlot()
-
getSlotType
final HTBackgroundType getSlotType()
-
updateCount
final Unit updateCount(Integer count)
-
getItem
ItemStack getItem()
-
setChanged
Unit setChanged()
-
getMaxStackSize
Integer getMaxStackSize()
-
getMaxStackSize
Integer getMaxStackSize(ItemStack stack)
-
create
final static HTContainerItemSlot create(HTItemStackResourceSlot slot, Integer x, Integer y, HTBackgroundType slotType)
-
-
-
-