Class ProcessingRecipeParams
java.lang.Object
com.simibubi.create.content.processing.recipe.ProcessingRecipeParams
- Direct Known Subclasses:
ItemApplicationRecipeParams
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.mojang.serialization.MapCodec<ProcessingRecipeParams> protected net.minecraft.core.NonNullList<FluidIngredient> protected net.minecraft.core.NonNullList<net.neoforged.neoforge.fluids.FluidStack> protected net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> protected intprotected HeatConditionprotected net.minecraft.core.NonNullList<ProcessingOutput> static net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ProcessingRecipeParams> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <P extends ProcessingRecipeParams>
com.mojang.serialization.MapCodec<P> protected voiddecode(net.minecraft.network.RegistryFriendlyByteBuf buffer) protected voidencode(net.minecraft.network.RegistryFriendlyByteBuf buffer) protected final List<com.mojang.datafixers.util.Either<FluidIngredient, net.minecraft.world.item.crafting.Ingredient>> protected final intprotected final HeatConditionprotected final List<com.mojang.datafixers.util.Either<net.neoforged.neoforge.fluids.FluidStack, ProcessingOutput>> results()protected static <P extends ProcessingRecipeParams>
net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, P> streamCodec(Supplier<P> factory)
-
Field Details
-
CODEC
-
STREAM_CODEC
public static net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ProcessingRecipeParams> STREAM_CODEC -
ingredients
protected net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> ingredients -
results
-
fluidIngredients
-
fluidResults
protected net.minecraft.core.NonNullList<net.neoforged.neoforge.fluids.FluidStack> fluidResults -
processingDuration
protected int processingDuration -
requiredHeat
-
-
Constructor Details
-
ProcessingRecipeParams
protected ProcessingRecipeParams()
-
-
Method Details
-
codec
protected static <P extends ProcessingRecipeParams> com.mojang.serialization.MapCodec<P> codec(Supplier<P> factory) -
streamCodec
protected static <P extends ProcessingRecipeParams> net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,P> streamCodec(Supplier<P> factory) -
ingredients
protected final List<com.mojang.datafixers.util.Either<FluidIngredient,net.minecraft.world.item.crafting.Ingredient>> ingredients() -
results
protected final List<com.mojang.datafixers.util.Either<net.neoforged.neoforge.fluids.FluidStack,ProcessingOutput>> results() -
processingDuration
protected final int processingDuration() -
requiredHeat
-
encode
protected void encode(net.minecraft.network.RegistryFriendlyByteBuf buffer) -
decode
protected void decode(net.minecraft.network.RegistryFriendlyByteBuf buffer)
-