Class ProcessingRecipe<T extends net.minecraft.world.Container>
java.lang.Object
com.simibubi.create.content.contraptions.processing.ProcessingRecipe<T>
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<T>
- Direct Known Subclasses:
AbstractCrushingRecipe,BasinRecipe,ConversionRecipe,CuttingRecipe,DeployerApplicationRecipe,EmptyingRecipe,FillingRecipe,PressingRecipe,SandPaperPolishingRecipe,SplashingRecipe
@ParametersAreNonnullByDefault
public abstract class ProcessingRecipe<T extends net.minecraft.world.Container>
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.minecraftforge.fluids.FluidStack>protected net.minecraft.resources.ResourceLocationprotected net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>protected intprotected HeatConditionprotected net.minecraft.core.NonNullList<ProcessingOutput> -
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.minecraftforge.fluids.FluidStack>getGroup()net.minecraft.resources.ResourceLocationgetId()net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>protected intprotected intprotected abstract intprotected abstract intintnet.minecraft.world.item.ItemStacknet.minecraft.core.NonNullList<ProcessingOutput>List<net.minecraft.world.item.ItemStack>net.minecraft.world.item.crafting.RecipeSerializer<?>net.minecraft.world.item.crafting.RecipeType<?>getType()booleanvoidreadAdditional(com.google.gson.JsonObject json) voidreadAdditional(net.minecraft.network.FriendlyByteBuf buffer) List<net.minecraft.world.item.ItemStack>voidwriteAdditional(com.google.gson.JsonObject json) 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
-
Field Details
-
id
protected 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.minecraftforge.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.Container>
-
getFluidIngredients
-
getRollableResults
-
getFluidResults
public net.minecraft.core.NonNullList<net.minecraftforge.fluids.FluidStack> getFluidResults() -
getRollableResultsAsItemStacks
-
enforceNextResult
-
rollResults
-
getProcessingDuration
public int getProcessingDuration() -
getRequiredHeat
-
assemble
- Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.Container>
-
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.Container>
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem()- Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.Container>
-
isSpecial
public boolean isSpecial()- Specified by:
isSpecialin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.Container>
-
getGroup
- Specified by:
getGroupin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.Container>
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.Container>
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.Container>
-
getType
public net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.Container>
-
getTypeInfo
-
readAdditional
public void readAdditional(com.google.gson.JsonObject json) -
readAdditional
public void readAdditional(net.minecraft.network.FriendlyByteBuf buffer) -
writeAdditional
public void writeAdditional(com.google.gson.JsonObject json) -
writeAdditional
public void writeAdditional(net.minecraft.network.FriendlyByteBuf buffer)
-