Class HTComponentFluidHandler
-
- All Implemented Interfaces:
-
hiiragi283.core.api.storage.fluid.HTFluidHandler,hiiragi283.core.api.storage.fluid.HTSidedFluidHandler,kotlin.collections.Collection,kotlin.collections.Iterable,kotlin.collections.List,net.neoforged.neoforge.fluids.capability.IFluidHandler,net.neoforged.neoforge.fluids.capability.IFluidHandlerItem
public final class HTComponentFluidHandler extends HTComponentHandler<FluidStack, HTFluidTank, HTAttachedFluids> implements HTFluidHandler, IFluidHandlerItem
HTFluidHandlerに基づいたコンポーネント向けの実装
-
-
Constructor Summary
Constructors Constructor Description HTComponentFluidHandler(ItemStack attachedTo, Integer size, HTComponentHandler.ContainerFactory<HTResourceSlot<HTFluidResourceType>> containerFactory)
-
Method Summary
Modifier and Type Method Description IntegergetSize()List<HTResourceSlot<HTFluidResourceType>>getFluidTanks(Direction side)指定した面からHTFluidTankの一覧を取得します。 HTResourceSlot<HTFluidResourceType>getFluidTank(Integer tank, Direction side)指定した面とインデックスからHTFluidTankを取得します。 IntegergetTanks(Direction side)FluidStackgetFluidInTank(Integer tank, Direction side)ItemStackgetContainer()-
Methods inherited from class hiiragi283.core.common.storage.fluid.HTComponentFluidHandler
getContainer, getTanks -
Methods inherited from class hiiragi283.core.api.storage.fluid.HTSidedFluidHandler
drain, drain, fill, getFluidInTank, getFluidSideFor, getTankCapacity, getTanks, isFluidValid -
Methods inherited from class hiiragi283.core.common.storage.component.HTComponentHandler
get, getContainers -
Methods inherited from class kotlin.collections.AbstractList
equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList -
Methods inherited from class kotlin.collections.AbstractCollection
contains, containsAll, isEmpty, toString -
Methods inherited from class kotlin.collections.Collection
parallelStream, stream, toArray -
Methods inherited from class kotlin.collections.Iterable
forEach, spliterator -
Methods inherited from class kotlin.collections.List
getFirst, getLast, reversed -
Methods inherited from class hiiragi283.core.api.storage.fluid.HTFluidHandler
drain, drain, fill, getTankCapacity, hasFluidHandler, isFluidValid -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTComponentFluidHandler
HTComponentFluidHandler(ItemStack attachedTo, Integer size, HTComponentHandler.ContainerFactory<HTResourceSlot<HTFluidResourceType>> containerFactory)
-
-
Method Detail
-
getFluidTanks
List<HTResourceSlot<HTFluidResourceType>> getFluidTanks(Direction side)
指定した面からHTFluidTankの一覧を取得します。
-
getFluidTank
HTResourceSlot<HTFluidResourceType> getFluidTank(Integer tank, Direction side)
- Returns:
指定したインデックスが範囲外の場合は
null
-
getFluidInTank
FluidStack getFluidInTank(Integer tank, Direction side)
-
getContainer
ItemStack getContainer()
-
-
-
-