Class HTFluidIngredient
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.ingredient.HTIngredient,hiiragi283.core.api.recipe.ingredient.HTIngredient.Registered,hiiragi283.core.api.text.HTHasText,java.util.function.BiPredicate
public final class HTFluidIngredient implements HTIngredient.Registered<Fluid, HTFluidResourceType>
HTFluidResourceType向けにHTIngredientを実装したクラスです。
- Since:
0.10.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description public final static BiCodec<RegistryFriendlyByteBuf, HTFluidIngredient>CODECprivate final FluidIngredientunsizedprivate final Integeramountprivate final BooleanisCatalyst
-
Constructor Summary
Constructors Constructor Description HTFluidIngredient(FluidIngredient unsized, Integer amount)
-
Method Summary
Modifier and Type Method Description final FluidIngredientgetUnsized()IntegergetAmount()BooleanisCatalyst()final Booleantest(FluidStack stack)final BooleantestOnlyType(FluidStack stack)BooleantestOnlyType(HTFluidResourceType resource)指定したresourceが条件を満たしているか判定します。 Either<TagKey<Fluid>, List<HTFluidResourceType>>unwrap()この材料に一致するすべての種類を返します。 StringtoString()-
Methods inherited from class hiiragi283.core.api.recipe.ingredient.HTIngredient
test -
Methods inherited from class hiiragi283.core.api.recipe.ingredient.HTIngredient.Registered
getText -
Methods inherited from class java.util.function.BiPredicate
and, negate, or -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTFluidIngredient
HTFluidIngredient(FluidIngredient unsized, Integer amount)
-
-
Method Detail
-
getUnsized
final FluidIngredient getUnsized()
-
isCatalyst
Boolean isCatalyst()
-
testOnlyType
final Boolean testOnlyType(FluidStack stack)
-
testOnlyType
Boolean testOnlyType(HTFluidResourceType resource)
指定したresourceが条件を満たしているか判定します。
-
unwrap
Either<TagKey<Fluid>, List<HTFluidResourceType>> unwrap()
この材料に一致するすべての種類を返します。
-
-
-
-