Class HTComponentFluidTank
-
- 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,java.lang.Runnable,net.neoforged.neoforge.common.util.INBTSerializable
public final class HTComponentFluidTank extends HTComponentSlot<HTFluidResourceType, FluidStack, HTAttachedFluids> implements HTResourceSlot<HTFluidResourceType>
-
-
Constructor Summary
Constructors Constructor Description HTComponentFluidTank(ItemStack attachedTo, Integer size, Integer slot, Integer capacity, BiPredicate<HTFluidResourceType, HTStorageAccess> canExtract, BiPredicate<HTFluidResourceType, HTStorageAccess> canInsert, Predicate<HTFluidResourceType> filter)
-
Method Summary
Modifier and Type Method Description final static HTComponentFluidTankcreate(HTComponentHandler.ContainerContext context, Integer capacity, BiPredicate<HTFluidResourceType, HTStorageAccess> canExtract, BiPredicate<HTFluidResourceType, HTStorageAccess> canInsert, Predicate<HTFluidResourceType> filter)-
Methods inherited from class hiiragi283.core.common.storage.component.HTComponentSlot
canStackExtract, getAmount, getCapacity, getResource, isStackValidForInsert, isValid, setAmount, setResource, setStack -
Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView
getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, isEmpty -
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceSlot.Mutable
extract, insert -
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceSlot
extract -
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceView
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
-
HTComponentFluidTank
HTComponentFluidTank(ItemStack attachedTo, Integer size, Integer slot, Integer capacity, BiPredicate<HTFluidResourceType, HTStorageAccess> canExtract, BiPredicate<HTFluidResourceType, HTStorageAccess> canInsert, Predicate<HTFluidResourceType> filter)
-
-
Method Detail
-
create
final static HTComponentFluidTank create(HTComponentHandler.ContainerContext context, Integer capacity, BiPredicate<HTFluidResourceType, HTStorageAccess> canExtract, BiPredicate<HTFluidResourceType, HTStorageAccess> canInsert, Predicate<HTFluidResourceType> filter)
-
-
-
-