Package hiiragi283.core.api.storage.item
Interface HTSidedItemHandler
-
- All Implemented Interfaces:
-
net.neoforged.neoforge.items.IItemHandler
public interface HTSidedItemHandler implements IItemHandler向きに応じて制御されたIItemHandlerの拡張インターフェースです。
- Since:
0.1.0
Hiiragi Tsubasa
-
-
Method Summary
Modifier and Type Method Description DirectiongetItemSideFor()デフォルトの向きを取得します。 abstract IntegergetSlots(Direction side)IntegergetSlots()abstract ItemStackgetStackInSlot(Integer slot, Direction side)ItemStackgetStackInSlot(Integer slot)abstract ItemStackinsertItem(Integer slot, ItemStack stack, HTStorageAction action, Direction side)ItemStackinsertItem(Integer slot, ItemStack stack, Boolean simulate)abstract ItemStackextractItem(Integer slot, Integer amount, HTStorageAction action, Direction side)ItemStackextractItem(Integer slot, Integer amount, Boolean simulate)abstract IntegergetSlotLimit(Integer slot, Direction side)IntegergetSlotLimit(Integer slot)abstract BooleanisItemValid(Integer slot, ItemStack stack, Direction side)BooleanisItemValid(Integer slot, ItemStack stack)-
-
Method Detail
-
getItemSideFor
Direction getItemSideFor()
デフォルトの向きを取得します。
-
getSlots
@Deprecated(message = "Use `getSlots(Direction?)` instead") Integer getSlots()
-
getStackInSlot
abstract ItemStack getStackInSlot(Integer slot, Direction side)
-
getStackInSlot
@Deprecated(message = "Use `getStackInSlot(Int, Direction?)` instead") ItemStack getStackInSlot(Integer slot)
-
insertItem
abstract ItemStack insertItem(Integer slot, ItemStack stack, HTStorageAction action, Direction side)
-
insertItem
@Deprecated(message = "Use `insertItem(Int, ItemStack, Boolean, Direction?)` instead") ItemStack insertItem(Integer slot, ItemStack stack, Boolean simulate)
-
extractItem
abstract ItemStack extractItem(Integer slot, Integer amount, HTStorageAction action, Direction side)
-
extractItem
@Deprecated(message = "Use `insertItem(Int, Int, Boolean, Direction?)` instead") ItemStack extractItem(Integer slot, Integer amount, Boolean simulate)
-
getSlotLimit
abstract Integer getSlotLimit(Integer slot, Direction side)
-
getSlotLimit
@Deprecated(message = "Use `getSlotLimit(Int, Direction?)` instead") Integer getSlotLimit(Integer slot)
-
isItemValid
abstract Boolean isItemValid(Integer slot, ItemStack stack, Direction side)
-
isItemValid
@Deprecated(message = "Use `isItemValid(Int, ItemStack, Direction?)` instead") Boolean isItemValid(Integer slot, ItemStack stack)
-
-
-
-