Uses of Class
net.neoforged.neoforge.fluids.crafting.FluidIngredient
Packages that use FluidIngredient
-
Uses of FluidIngredient in net.neoforged.neoforge.fluids.crafting
Classes in net.neoforged.neoforge.fluids.crafting with type parameters of type FluidIngredientModifier and TypeClassDescriptionfinal recordFluidIngredientType<T extends FluidIngredient>This represents the "type" of aFluidIngredient, providing means of serializing and deserializing the ingredient over both JSON and network, using theFluidIngredientType.codecandFluidIngredientType.streamCodec, respectively.Subclasses of FluidIngredient in net.neoforged.neoforge.fluids.craftingModifier and TypeClassDescriptionfinal classFluid ingredient that matches if any of the child ingredients match.classFluid ingredient that matches the given set of fluids, additionally performing either astrictor partial test on the FluidStack's components.final classFluid ingredient that matches the difference of two provided fluid ingredients, i.e.classSingleton that represents an empty fluid ingredient.final classFluidIngredient that matches if all child ingredients matchclassFluid ingredient that only matches the fluid of the given stack.classFluid ingredient that matches all fluids within the given tag.Fields in net.neoforged.neoforge.fluids.crafting declared as FluidIngredientModifier and TypeFieldDescriptionprivate final FluidIngredientDifferenceFluidIngredient.baseprivate final FluidIngredientSizedFluidIngredient.ingredientprivate final FluidIngredientDifferenceFluidIngredient.subtractedFields in net.neoforged.neoforge.fluids.crafting with type parameters of type FluidIngredientModifier and TypeFieldDescriptionprivate final List<FluidIngredient> CompoundFluidIngredient.childrenprivate final List<FluidIngredient> IntersectionFluidIngredient.childrenstatic final com.mojang.serialization.Codec<FluidIngredient> FluidIngredient.CODECFull codec representing a fluid ingredient in all possible forms.static final com.mojang.serialization.Codec<FluidIngredient> FluidIngredient.CODEC_NON_EMPTYSame asCODEC, except not allowing for empty ingredients ([]) to be specified.static final com.mojang.serialization.Codec<List<FluidIngredient>> FluidIngredient.LIST_CODECstatic final com.mojang.serialization.Codec<List<FluidIngredient>> FluidIngredient.LIST_CODEC_NON_EMPTYprivate static final com.mojang.serialization.Codec<FluidIngredient> FluidIngredient.MAP_CODEC_CODECstatic final com.mojang.serialization.MapCodec<FluidIngredient> FluidIngredient.MAP_CODEC_NONEMPTYThis is a codec that represents a singleFluidIngredientin map form; either dispatched by type or falling back toSINGLE_OR_TAG_CODECif no type is specified.private static final com.mojang.serialization.MapCodec<FluidIngredient> FluidIngredient.SINGLE_OR_TAG_CODECThis 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_CODECMethods in net.neoforged.neoforge.fluids.crafting that return FluidIngredientModifier and TypeMethodDescriptionDifferenceFluidIngredient.base()static FluidIngredientFluidIngredient.empty()SizedFluidIngredient.ingredient()static FluidIngredientCompoundFluidIngredient.of(List<FluidIngredient> children) Creates a compound ingredient from the given list of ingredients.static FluidIngredientCompoundFluidIngredient.of(Stream<FluidIngredient> stream) static FluidIngredientCompoundFluidIngredient.of(FluidIngredient... children) Creates a compound ingredient from the given list of ingredients.static <T> FluidIngredientDataComponentFluidIngredient.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 FluidIngredientDataComponentFluidIngredient.of(boolean strict, DataComponentMap map, Holder<Fluid>... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredientDataComponentFluidIngredient.of(boolean strict, DataComponentMap map, HolderSet<Fluid> fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredientDataComponentFluidIngredient.of(boolean strict, DataComponentMap map, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredientDataComponentFluidIngredient.of(boolean strict, DataComponentPredicate predicate, Holder<Fluid>... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredientDataComponentFluidIngredient.of(boolean strict, DataComponentPredicate predicate, HolderSet<Fluid> fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredientDataComponentFluidIngredient.of(boolean strict, DataComponentPredicate predicate, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic <T> FluidIngredientDataComponentFluidIngredient.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 FluidIngredientDataComponentFluidIngredient.of(boolean strict, FluidStack stack) Creates a new ingredient matching the given fluid, containing the given componentsstatic FluidIngredientDifferenceFluidIngredient.of(FluidIngredient base, FluidIngredient subtracted) Gets the difference of the two fluid ingredientsstatic FluidIngredientFluidIngredient.of()private static FluidIngredientstatic FluidIngredientstatic FluidIngredientFluidIngredient.of(FluidStack... fluids) static FluidIngredientIntersectionFluidIngredient.of(FluidIngredient... ingredients) Gets an intersection fluid ingredientstatic FluidIngredientstatic FluidIngredientstatic FluidIngredientFluidIngredient.single(FluidStack stack) DifferenceFluidIngredient.subtracted()static FluidIngredientMethods in net.neoforged.neoforge.fluids.crafting that return types with arguments of type FluidIngredientModifier 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()Methods in net.neoforged.neoforge.fluids.crafting with parameters of type FluidIngredientModifier and TypeMethodDescriptionstatic FluidIngredientCompoundFluidIngredient.of(FluidIngredient... children) Creates a compound ingredient from the given list of ingredients.static FluidIngredientDifferenceFluidIngredient.of(FluidIngredient base, FluidIngredient subtracted) Gets the difference of the two fluid ingredientsstatic FluidIngredientIntersectionFluidIngredient.of(FluidIngredient... ingredients) Gets an intersection fluid ingredientMethod parameters in net.neoforged.neoforge.fluids.crafting with type arguments of type FluidIngredientModifier and TypeMethodDescriptionstatic FluidIngredientCompoundFluidIngredient.of(List<FluidIngredient> children) Creates a compound ingredient from the given list of ingredients.static FluidIngredientCompoundFluidIngredient.of(Stream<FluidIngredient> stream) Constructors in net.neoforged.neoforge.fluids.crafting with parameters of type FluidIngredientModifierConstructorDescriptionDifferenceFluidIngredient(FluidIngredient base, FluidIngredient subtracted) SizedFluidIngredient(FluidIngredient ingredient, int amount) Constructor parameters in net.neoforged.neoforge.fluids.crafting with type arguments of type FluidIngredientModifierConstructorDescriptionCompoundFluidIngredient(List<? extends FluidIngredient> children) IntersectionFluidIngredient(List<FluidIngredient> children)