Class HTInfiniteItemFluidTank
-
- All Implemented Interfaces:
-
hiiragi283.core.api.HTContentListener,hiiragi283.core.api.HTContentListener.Empty,hiiragi283.core.api.serialization.value.HTValueSerializable,hiiragi283.core.api.serialization.value.HTValueSerializable.Empty,hiiragi283.core.api.storage.amount.HTAmountView,hiiragi283.core.api.storage.resource.HTResourceSlot,hiiragi283.core.api.storage.resource.HTResourceView,hiiragi283.core.impl.storage.fluid.HTItemFluidTank,java.lang.Runnable,net.neoforged.neoforge.common.util.INBTSerializable
public final class HTInfiniteItemFluidTank implements HTItemFluidTank
-
-
Field Summary
Fields Modifier and Type Field Description private final ItemStackcontainer
-
Constructor Summary
Constructors Constructor Description HTInfiniteItemFluidTank(ItemStack container)
-
Method Summary
Modifier and Type Method Description ItemStackgetContainer()BooleanisValid(HTFluidResourceType resource)Integerinsert(HTFluidResourceType resource, Integer amount, HTStorageAction action, HTStorageAccess access)Integerextract(Integer amount, HTStorageAction action, HTStorageAccess access)HTFluidResourceTypegetResource()IntegergetCapacity(HTFluidResourceType resource)IntegergetAmount()-
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceSlot
extract -
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceView
getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, isEmpty -
Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView
getLevelAsFloat, getLevelAsFraction, getNeeded -
Methods inherited from class hiiragi283.core.api.serialization.value.HTValueSerializable
deserialize, deserializeNBT, serialize, serializeNBT -
Methods inherited from class hiiragi283.core.api.HTContentListener
onContentsChanged, run -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getContainer
ItemStack getContainer()
-
insert
Integer insert(HTFluidResourceType resource, Integer amount, HTStorageAction action, HTStorageAccess access)
-
getResource
HTFluidResourceType getResource()
-
getCapacity
Integer getCapacity(HTFluidResourceType resource)
-
-
-
-