Class HTFluidIngredient
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.ingredient.HTIngredient,hiiragi283.core.api.text.HTHasText,java.util.function.BiPredicate
public final class HTFluidIngredient implements HTIngredient<Fluid, HTFluidResourceType>
HTFluidResourceType向けにHTIngredientを実装したクラスです。
- Since:
0.4.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description public final static BiCodec<RegistryFriendlyByteBuf, HTFluidIngredient>CODECprivate final SizedFluidIngredientdelegateprivate final FluidIngredientingredient
-
Constructor Summary
Constructors Constructor Description HTFluidIngredient(SizedFluidIngredient delegate)HTFluidIngredient(FluidIngredient ingredient, Integer amount)
-
Method Summary
Modifier and Type Method Description final SizedFluidIngredientgetDelegate()final FluidIngredientgetIngredient()final Booleantest(FluidStack stack)final BooleantestOnlyType(FluidStack stack)BooleantestOnlyType(HTFluidResourceType resource)指定したresourceが条件を満たしているか判定します。 final HTFluidIngredientcopyWithAmount(Integer amount)IntegergetRequiredAmount()この材料が要求する量を返します。 Either<TagKey<Fluid>, List<HTFluidResourceType>>unwrap()この材料に一致するすべての種類を返します。 -
Methods inherited from class hiiragi283.core.api.recipe.ingredient.HTIngredient
getText, test -
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(SizedFluidIngredient delegate)
-
HTFluidIngredient
HTFluidIngredient(FluidIngredient ingredient, Integer amount)
-
-
Method Detail
-
getDelegate
final SizedFluidIngredient getDelegate()
-
getIngredient
final FluidIngredient getIngredient()
-
testOnlyType
final Boolean testOnlyType(FluidStack stack)
-
testOnlyType
Boolean testOnlyType(HTFluidResourceType resource)
指定したresourceが条件を満たしているか判定します。
-
copyWithAmount
final HTFluidIngredient copyWithAmount(Integer amount)
-
getRequiredAmount
Integer getRequiredAmount()
この材料が要求する量を返します。
-
unwrap
Either<TagKey<Fluid>, List<HTFluidResourceType>> unwrap()
この材料に一致するすべての種類を返します。
-
-
-
-