Class ProcessingRecipe<T extends net.minecraft.world.item.crafting.RecipeInput>
java.lang.Object
com.simibubi.create.content.processing.recipe.ProcessingRecipe<T>
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<T>
- Direct Known Subclasses:
AbstractCrushingRecipe,BasinRecipe,ConversionRecipe,CuttingRecipe,EmptyingRecipe,FillingRecipe,HauntingRecipe,ItemApplicationRecipe,PressingRecipe,SandPaperPolishingRecipe,SplashingRecipe
@ParametersAreNonnullByDefault
public abstract class ProcessingRecipe<T extends net.minecraft.world.item.crafting.RecipeInput>
extends Object
implements net.minecraft.world.item.crafting.Recipe<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.core.NonNullList<FluidIngredient> protected net.minecraft.core.NonNullList<net.neoforged.neoforge.fluids.FluidStack> net.minecraft.resources.ResourceLocationprotected net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> protected intprotected HeatConditionprotected net.minecraft.core.NonNullList<ProcessingOutput> Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionProcessingRecipe(IRecipeTypeInfo typeInfo, ProcessingRecipeBuilder.ProcessingRecipeParams params) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackbooleancanCraftInDimensions(int width, int height) protected booleanprotected booleanvoidenforceNextResult(Supplier<net.minecraft.world.item.ItemStack> stack) net.minecraft.core.NonNullList<FluidIngredient> net.minecraft.core.NonNullList<net.neoforged.neoforge.fluids.FluidStack> getGroup()net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> protected intprotected intprotected abstract intprotected abstract intintnet.minecraft.world.item.ItemStackgetResultItem(net.minecraft.core.HolderLookup.Provider provider) List<net.minecraft.world.item.ItemStack> net.minecraft.world.item.crafting.RecipeSerializer<?> net.minecraft.world.item.crafting.RecipeType<?> getType()booleanvoidreadAdditional(net.minecraft.network.FriendlyByteBuf buffer) List<net.minecraft.world.item.ItemStack> List<net.minecraft.world.item.ItemStack> rollResults(List<ProcessingOutput> rollableResults) voidwriteAdditional(net.minecraft.network.FriendlyByteBuf buffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getRemainingItems, getToastSymbol, isIncomplete, matches, showNotification
-
Field Details
-
id
public net.minecraft.resources.ResourceLocation id -
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
-
ProcessingRecipe
public ProcessingRecipe(IRecipeTypeInfo typeInfo, ProcessingRecipeBuilder.ProcessingRecipeParams params)
-
-
Method Details
-
getMaxInputCount
protected abstract int getMaxInputCount() -
getMaxOutputCount
protected abstract int getMaxOutputCount() -
canRequireHeat
protected boolean canRequireHeat() -
canSpecifyDuration
protected boolean canSpecifyDuration() -
getMaxFluidInputCount
protected int getMaxFluidInputCount() -
getMaxFluidOutputCount
protected int getMaxFluidOutputCount() -
getIngredients
public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()- Specified by:
getIngredientsin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
getFluidIngredients
-
getRollableResults
-
getFluidResults
public net.minecraft.core.NonNullList<net.neoforged.neoforge.fluids.FluidStack> getFluidResults() -
getRollableResultsAsItemStacks
-
enforceNextResult
-
rollResults
-
rollResults
-
getProcessingDuration
public int getProcessingDuration() -
getRequiredHeat
-
assemble
public net.minecraft.world.item.ItemStack assemble(T t, net.minecraft.core.HolderLookup.Provider provider) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.HolderLookup.Provider provider) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
isSpecial
public boolean isSpecial()- Specified by:
isSpecialin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
getGroup
- Specified by:
getGroupin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
getType
public net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
-
getTypeInfo
-
getRecipeType
-
readAdditional
public void readAdditional(net.minecraft.network.FriendlyByteBuf buffer) -
writeAdditional
public void writeAdditional(net.minecraft.network.FriendlyByteBuf buffer)
-