Class HTFluidInputHandler
-
- All Implemented Interfaces:
-
hiiragi283.core.api.HTContentListener,hiiragi283.core.api.recipe.handler.HTAmountInputHandler,hiiragi283.core.api.recipe.handler.HTInputHandler,hiiragi283.core.api.serialization.value.HTValueSerializable,hiiragi283.core.api.storage.amount.HTAmountView,hiiragi283.core.api.storage.resource.HTResourceSlot,hiiragi283.core.api.storage.resource.HTResourceView,java.lang.Runnable,net.neoforged.neoforge.common.util.INBTSerializable
public final class HTFluidInputHandler implements HTInputHandler<HTFluidResourceType>, HTResourceSlot<HTFluidResourceType>
-
-
Constructor Summary
Constructors Constructor Description HTFluidInputHandler(HTResourceSlot<HTFluidResourceType> tank)
-
Method Summary
Modifier and Type Method Description IntegergetMatchingAmount(HTIngredient<HTFluidResourceType> ingredient)指定した材料から消費される数量を取得します。 Unitconsume(Integer amount)指定した数量だけ中身を消費します。 -
Methods inherited from class hiiragi283.core.api.recipe.handler.HTInputHandler
consume, consume -
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceSlot
extract, extract, insert, isValid -
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceView
getCapacity, getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, getResource, isEmpty -
Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView
getAmount, getLevelAsFloat, getLevelAsFraction, getNeeded -
Methods inherited from class hiiragi283.core.api.serialization.value.HTValueSerializable
deserialize, serialize -
Methods inherited from class hiiragi283.core.api.HTContentListener
onContentsChanged -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTFluidInputHandler
HTFluidInputHandler(HTResourceSlot<HTFluidResourceType> tank)
-
-
Method Detail
-
getMatchingAmount
Integer getMatchingAmount(HTIngredient<HTFluidResourceType> ingredient)
指定した材料から消費される数量を取得します。
- Returns:
ingredientが要求する数量
-
-
-
-