Package hiiragi283.core.api.registry
Class HTFluidContent
-
- All Implemented Interfaces:
-
hiiragi283.core.api.registry.HTHolderLike,hiiragi283.core.api.registry.HTHolderLike.HolderDelegate,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.resource.HTKeyLike,hiiragi283.core.api.resource.HTKeyLike.HolderDelegate,java.util.function.Supplier
public class HTFluidContent<TYPE extends FluidType, FLUID extends Fluid, ITEM extends Item> implements HTHolderLike.HolderDelegate<Fluid, FLUID>
液体とそれに関する要素を束ねるクラスです。
- Since:
0.6.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHTFluidContent.Flowing液体流とブロックに対応したHTFluidContentの拡張クラスです。
-
Field Summary
Fields Modifier and Type Field Description private final HTHolderLike<FluidType, TYPE>typeHolderprivate final TagKey<Fluid>fluidTagprivate final HTItemHolderLike<ITEM>bucketHolderprivate final TagKey<Item>bucketTag
-
Constructor Summary
Constructors Constructor Description HTFluidContent(HTHolderLike<FluidType, TYPE> typeHolder, HTHolderLike.HolderDelegate<Fluid, FLUID> fluidHolder, TagKey<Fluid> fluidTag, HTItemHolderLike<ITEM> bucketHolder, TagKey<Item> bucketTag)
-
Method Summary
Modifier and Type Method Description final HTHolderLike<FluidType, TYPE>getTypeHolder()final TagKey<Fluid>getFluidTag()final HTItemHolderLike<ITEM>getBucketHolder()final TagKey<Item>getBucketTag()final TYPEgetFluidType()保持している液体のnet.neoforged.neoforge.fluids.FluidTypeを取得します。 final ITEMgetBucket()保持しているバケツを取得します。 final FluidStacktoStack(Integer amount)final HTFluidResourceTypetoResource(DataComponentPatch patch)-
Methods inherited from class hiiragi283.core.api.resource.HTKeyLike
getId, getResourceKey, isOf, isOf -
Methods inherited from class hiiragi283.core.api.resource.HTKeyLike.HolderDelegate
getHolder, isOf, isOf, isOf, isOf -
Methods inherited from class hiiragi283.core.api.resource.HTIdLike
getNamespace, getPath -
Methods inherited from class java.util.function.Supplier
get -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTFluidContent
HTFluidContent(HTHolderLike<FluidType, TYPE> typeHolder, HTHolderLike.HolderDelegate<Fluid, FLUID> fluidHolder, TagKey<Fluid> fluidTag, HTItemHolderLike<ITEM> bucketHolder, TagKey<Item> bucketTag)
-
-
Method Detail
-
getTypeHolder
final HTHolderLike<FluidType, TYPE> getTypeHolder()
-
getFluidTag
final TagKey<Fluid> getFluidTag()
-
getBucketHolder
final HTItemHolderLike<ITEM> getBucketHolder()
-
getBucketTag
final TagKey<Item> getBucketTag()
-
getFluidType
final TYPE getFluidType()
保持している液体のnet.neoforged.neoforge.fluids.FluidTypeを取得します。
-
toResource
final HTFluidResourceType toResource(DataComponentPatch patch)
-
-
-
-