Class HTPotionFluidIngredient
-
- All Implemented Interfaces:
-
java.util.function.Predicate
public final class HTPotionFluidIngredient extends FluidIngredientHTPotionFluidManagerに基づいて液体ポーションを扱うFluidIngredientの実装クラスです。
- Since:
0.10.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description public final static MapBiCodec<RegistryFriendlyByteBuf, HTPotionFluidIngredient>CODECpublic final static FluidIngredientType<HTPotionFluidIngredient>TYPEprivate final HolderSet<Potion>potionsprivate final HTBottleTypebottleTypeprivate final Array<FluidStack>stacksprivate final BooleanisEmptyprivate final BooleanisSimpleprivate final FluidIngredientType<?>type
-
Constructor Summary
Constructors Constructor Description HTPotionFluidIngredient(HolderSet<Potion> potions, HTBottleType bottleType)
-
Method Summary
Modifier and Type Method Description final HolderSet<Potion>getPotions()final HTBottleTypegetBottleType()Booleantest(FluidStack fluidStack)BooleanisSimple()FluidIngredientType<?>getType()IntegerhashCode()Booleanequals(Object obj)StringtoString()-
Methods inherited from class net.neoforged.neoforge.fluids.crafting.FluidIngredient
getStacks, hasNoFluids, isEmpty -
Methods inherited from class hiiragi283.core.api.recipe.ingredient.HTPotionFluidIngredient
getType, isSimple -
Methods inherited from class java.util.function.Predicate
and, negate, or -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTPotionFluidIngredient
HTPotionFluidIngredient(HolderSet<Potion> potions, HTBottleType bottleType)
- Parameters:
potions- 対象となるポーションの一覧bottleType- 対象となるポーション瓶の種類
-
-
Method Detail
-
getPotions
final HolderSet<Potion> getPotions()
-
getBottleType
final HTBottleType getBottleType()
-
getType
FluidIngredientType<?> getType()
-
-
-
-