Class FluidIngredient
java.lang.Object
earth.terrarium.botarium.common.fluid.utils.FluidIngredient
- All Implemented Interfaces:
Predicate<FluidHolder>
- Direct Known Subclasses:
QuantifiedFluidIngredient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic interface -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFluidIngredient(List<com.mojang.datafixers.util.Either<FluidIngredient.FluidValue, FluidIngredient.TagValue>> stream) -
Method Summary
Modifier and TypeMethodDescriptionvoiddissolve()List<com.mojang.datafixers.util.Either<FluidIngredient.FluidValue,FluidIngredient.TagValue>> static <A,B> com.mojang.serialization.Codec<B> listAndObjectCodec(com.mojang.serialization.Codec<A> codec, Function<B, List<A>> from, Function<List<A>, B> to) static FluidIngredientof()static FluidIngredientof(FluidHolder... fluids) static FluidIngredientof(Stream<FluidHolder> fluids) static FluidIngredientof(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag) static FluidIngredientof(net.minecraft.world.level.material.Fluid... fluids) booleantest(FluidHolder fluidHolder)
-
Field Details
-
CODEC
-
-
Constructor Details
-
FluidIngredient
protected FluidIngredient(List<com.mojang.datafixers.util.Either<FluidIngredient.FluidValue, FluidIngredient.TagValue>> stream)
-
-
Method Details
-
listAndObjectCodec
-
of
-
of
-
of
-
of
-
of
public static FluidIngredient of(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag) -
test
- Specified by:
testin interfacePredicate<FluidHolder>
-
getFluids
-
dissolve
public void dissolve() -
getRawValues
public List<com.mojang.datafixers.util.Either<FluidIngredient.FluidValue,FluidIngredient.TagValue>> getRawValues()
-