Package hiiragi283.core.common.data.tank
Object HTPotionTankInteraction
-
- All Implemented Interfaces:
-
hiiragi283.core.api.data.tank.HTTankInteraction,hiiragi283.core.api.data.tank.HTTankInteraction.Emptying,hiiragi283.core.api.data.tank.HTTankInteraction.Filling
public class HTPotionTankInteraction implements HTTankInteraction.Emptying, HTTankInteraction.Filling
-
-
Field Summary
Fields Modifier and Type Field Description private final Integeramountpublic final static HTPotionTankInteractionINSTANCE
-
Method Summary
Modifier and Type Method Description BooleancanEmptyContainer(HTItemResourceType container)指定した容器から液体を搬出できるか判定します。 Pair<ItemStack, FluidStack>emptyContainer(HTItemResourceType container)指定した容器から液体を取り出します。 BooleancanFillContainer(HTItemResourceType container, HTFluidResourceType fluidStack)指定した容器に液体を搬入できるか判定します。 ItemStackfillContainer(HTItemResourceType container, HTFluidResourceType fluidStack)指定した容器に液体を搬入します。 IntegergetAmount()-
-
Method Detail
-
canEmptyContainer
Boolean canEmptyContainer(HTItemResourceType container)
指定した容器から液体を搬出できるか判定します。
- Returns:
搬出できる場合は
true
-
emptyContainer
Pair<ItemStack, FluidStack> emptyContainer(HTItemResourceType container)
指定した容器から液体を取り出します。
- Returns:
空の容器と保持していた液体
-
canFillContainer
Boolean canFillContainer(HTItemResourceType container, HTFluidResourceType fluidStack)
- Returns:
搬入できる場合は
true
-
fillContainer
ItemStack fillContainer(HTItemResourceType container, HTFluidResourceType fluidStack)
- Returns:
液体入りの容器
-
-
-
-