Package hiiragi283.core.api.storage.item
Class HTItemSlotKt
-
- All Implemented Interfaces:
public final class HTItemSlotKt
-
-
Method Summary
Modifier and Type Method Description final static ItemStackgetItemStack(HTResourceView<HTItemResourceType> $self)このHTItemViewからItemStackを取得します。 final static ItemStackinsert(HTResourceSlot<HTItemResourceType> $self, ItemStack stack, HTStorageAction action, HTStorageAccess access)このHTItemSlotに指定したstackを搬入します。 final static ItemStackextractItem(HTResourceSlot<HTItemResourceType> $self, Integer amount, HTStorageAction action, HTStorageAccess access)このHTItemSlotから指定したamountだけ搬出します。 -
-
Method Detail
-
getItemStack
final static ItemStack getItemStack(HTResourceView<HTItemResourceType> $self)
このHTItemViewからItemStackを取得します。
- Since:
0.4.0
-
insert
final static ItemStack insert(HTResourceSlot<HTItemResourceType> $self, ItemStack stack, HTStorageAction action, HTStorageAccess access)
このHTItemSlotに指定したstackを搬入します。
- Returns:
搬入されないItemStack
- Since:
0.4.0
-
extractItem
final static ItemStack extractItem(HTResourceSlot<HTItemResourceType> $self, Integer amount, HTStorageAction action, HTStorageAccess access)
このHTItemSlotから指定したamountだけ搬出します。
- Returns:
搬出されるItemStack
- Since:
0.4.0
-
-
-
-