Uses of Class
net.neoforged.neoforge.fluids.crafting.FluidIngredient
-
Uses of FluidIngredient in net.neoforged.neoforge.fluids.crafting
Modifier and TypeClassDescriptionfinal record
FluidIngredientType<T extends FluidIngredient>
This represents the "type" of aFluidIngredient
, providing means of serializing and deserializing the ingredient over both JSON and network, using theFluidIngredientType.codec
andFluidIngredientType.streamCodec
, respectively.Modifier and TypeClassDescriptionfinal class
Fluid ingredient that matches if any of the child ingredients match.class
Fluid ingredient that matches the given set of fluids, additionally performing either astrict
or partial test on the FluidStack's components.final class
Fluid ingredient that matches the difference of two provided fluid ingredients, i.e.class
Singleton that represents an empty fluid ingredient.final class
FluidIngredient that matches if all child ingredients matchclass
Fluid ingredient that only matches the fluid of the given stack.class
Fluid ingredient that matches all fluids within the given tag.Modifier and TypeFieldDescriptionprivate final FluidIngredient
DifferenceFluidIngredient.base
private final FluidIngredient
SizedFluidIngredient.ingredient
private final FluidIngredient
DifferenceFluidIngredient.subtracted
Modifier and TypeFieldDescriptionprivate final List
<FluidIngredient> CompoundFluidIngredient.children
private final List
<FluidIngredient> IntersectionFluidIngredient.children
static final com.mojang.serialization.Codec
<FluidIngredient> FluidIngredient.CODEC
Full codec representing a fluid ingredient in all possible forms.static final com.mojang.serialization.Codec
<FluidIngredient> FluidIngredient.CODEC_NON_EMPTY
Same asCODEC
, except not allowing for empty ingredients ([]
) to be specified.static final com.mojang.serialization.Codec
<List<FluidIngredient>> FluidIngredient.LIST_CODEC
static final com.mojang.serialization.Codec
<List<FluidIngredient>> FluidIngredient.LIST_CODEC_NON_EMPTY
private static final com.mojang.serialization.Codec
<FluidIngredient> FluidIngredient.MAP_CODEC_CODEC
static final com.mojang.serialization.MapCodec
<FluidIngredient> FluidIngredient.MAP_CODEC_NONEMPTY
This is a codec that represents a singleFluidIngredient
in map form; either dispatched by type or falling back toSINGLE_OR_TAG_CODEC
if no type is specified.private static final com.mojang.serialization.MapCodec
<FluidIngredient> FluidIngredient.SINGLE_OR_TAG_CODEC
This is a codec that is used to represent basic "single fluid" or "tag" fluid ingredients directly, similar toIngredient.Value.CODEC
, except not using value subclasses and instead directly providing the correspondingFluidIngredient
.static final StreamCodec
<RegistryFriendlyByteBuf, FluidIngredient> FluidIngredient.STREAM_CODEC
Modifier and TypeMethodDescriptionDifferenceFluidIngredient.base()
static FluidIngredient
FluidIngredient.empty()
SizedFluidIngredient.ingredient()
static FluidIngredient
CompoundFluidIngredient.of
(List<FluidIngredient> children) Creates a compound ingredient from the given list of ingredients.static FluidIngredient
CompoundFluidIngredient.of
(Stream<FluidIngredient> stream) static FluidIngredient
CompoundFluidIngredient.of
(FluidIngredient... children) Creates a compound ingredient from the given list of ingredients.static <T> FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, Supplier<? extends DataComponentType<? super T>> type, T value, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentMap map, Holder<Fluid>... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentMap map, HolderSet<Fluid> fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentMap map, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentPredicate predicate, Holder<Fluid>... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentPredicate predicate, HolderSet<Fluid> fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentPredicate predicate, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic <T> FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentType<? super T> type, T value, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, FluidStack stack) Creates a new ingredient matching the given fluid, containing the given componentsstatic FluidIngredient
DifferenceFluidIngredient.of
(FluidIngredient base, FluidIngredient subtracted) Gets the difference of the two fluid ingredientsstatic FluidIngredient
FluidIngredient.of()
private static FluidIngredient
static FluidIngredient
static FluidIngredient
FluidIngredient.of
(FluidStack... fluids) static FluidIngredient
IntersectionFluidIngredient.of
(FluidIngredient... ingredients) Gets an intersection fluid ingredientstatic FluidIngredient
static FluidIngredient
static FluidIngredient
FluidIngredient.single
(FluidStack stack) DifferenceFluidIngredient.subtracted()
static FluidIngredient
Modifier and TypeMethodDescriptionCompoundFluidIngredient.children()
IntersectionFluidIngredient.children()
private static com.mojang.serialization.Codec
<FluidIngredient> FluidIngredient.codec
(boolean allowEmpty) private static com.mojang.serialization.MapCodec
<FluidIngredient> FluidIngredient.makeMapCodec()
private static com.mojang.serialization.MapCodec
<FluidIngredient> FluidIngredient.singleOrTagCodec()
Modifier and TypeMethodDescriptionstatic FluidIngredient
CompoundFluidIngredient.of
(FluidIngredient... children) Creates a compound ingredient from the given list of ingredients.static FluidIngredient
DifferenceFluidIngredient.of
(FluidIngredient base, FluidIngredient subtracted) Gets the difference of the two fluid ingredientsstatic FluidIngredient
IntersectionFluidIngredient.of
(FluidIngredient... ingredients) Gets an intersection fluid ingredientModifier and TypeMethodDescriptionstatic FluidIngredient
CompoundFluidIngredient.of
(List<FluidIngredient> children) Creates a compound ingredient from the given list of ingredients.static FluidIngredient
CompoundFluidIngredient.of
(Stream<FluidIngredient> stream) ModifierConstructorDescriptionDifferenceFluidIngredient
(FluidIngredient base, FluidIngredient subtracted) SizedFluidIngredient
(FluidIngredient ingredient, int amount) ModifierConstructorDescriptionCompoundFluidIngredient
(List<? extends FluidIngredient> children) IntersectionFluidIngredient
(List<FluidIngredient> children)