Package hiiragi283.lib.recipe.ingredient
Class HTFluidIngredient
-
- All Implemented Interfaces:
-
hiiragi283.lib.recipe.ingredient.HTIngredient,java.util.function.Predicate
@JvmInline() public final class HTFluidIngredient implements HTIngredient<Fluid, FluidStack>
-
-
Field Summary
Fields Modifier and Type Field Description public final static Codec<HTFluidIngredient>CODECpublic final static StreamCodec<RegistryFriendlyByteBuf, HTFluidIngredient>STREAM_CODECprivate final FluidIngredientunsizedprivate final Integeramount
-
Constructor Summary
Constructors Constructor Description HTFluidIngredient(SizedFluidIngredient delegate)HTFluidIngredient(FluidIngredient ingredient, Integer amount)
-
Method Summary
Modifier and Type Method Description final FluidIngredientgetUnsized()final IntegergetAmount()Booleantest(TypedInstance<Fluid> instance)指定したinstanceが条件を満たしているか判定します。 BooleantestOnlyType(TypedInstance<Fluid> instance)指定したinstanceが数量を除いて条件を満たしているか判定します。 IntegergetRequiredAmount(TypedInstance<Fluid> instance)List<FluidStack>getPreviewStacks(ContextMap contextMap)-
-
Constructor Detail
-
HTFluidIngredient
HTFluidIngredient(SizedFluidIngredient delegate)
-
HTFluidIngredient
HTFluidIngredient(FluidIngredient ingredient, Integer amount)
-
-
Method Detail
-
getUnsized
final FluidIngredient getUnsized()
-
testOnlyType
Boolean testOnlyType(TypedInstance<Fluid> instance)
指定したinstanceが数量を除いて条件を満たしているか判定します。
-
getRequiredAmount
Integer getRequiredAmount(TypedInstance<Fluid> instance)
-
getPreviewStacks
List<FluidStack> getPreviewStacks(ContextMap contextMap)
-
-
-
-