Class ItemApplicationRecipe
java.lang.Object
com.simibubi.create.content.processing.recipe.ProcessingRecipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
com.simibubi.create.content.kinetics.deployer.ItemApplicationRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
- Direct Known Subclasses:
DeployerApplicationRecipe,ManualApplicationRecipe
public class ItemApplicationRecipe
extends ProcessingRecipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
Field Summary
Fields inherited from class com.simibubi.create.content.processing.recipe.ProcessingRecipe
fluidIngredients, fluidResults, id, ingredients, processingDuration, requiredHeat, resultsFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ProcessingRecipe<?>>
com.mojang.serialization.MapCodec<T> codec(AllRecipeTypes recipeTypes) protected intprotected intnet.minecraft.world.item.crafting.Ingredientnet.minecraft.world.item.crafting.Ingredientbooleanmatches(net.neoforged.neoforge.items.wrapper.RecipeWrapper inv, net.minecraft.world.level.Level p_77569_2_) voidreadAdditional(net.minecraft.network.FriendlyByteBuf buffer) booleanvoidwriteAdditional(net.minecraft.network.FriendlyByteBuf buffer) Methods inherited from class com.simibubi.create.content.processing.recipe.ProcessingRecipe
assemble, canCraftInDimensions, canRequireHeat, canSpecifyDuration, enforceNextResult, getFluidIngredients, getFluidResults, getGroup, getIngredients, getMaxFluidInputCount, getMaxFluidOutputCount, getProcessingDuration, getRecipeType, getRequiredHeat, getResultItem, getRollableResults, getRollableResultsAsItemStacks, getSerializer, getType, getTypeInfo, isSpecial, rollResults, rollResultsMethods 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, showNotification
-
Constructor Details
-
ItemApplicationRecipe
public ItemApplicationRecipe(AllRecipeTypes type, ProcessingRecipeBuilder.ProcessingRecipeParams params)
-
-
Method Details
-
codec
public static <T extends ProcessingRecipe<?>> com.mojang.serialization.MapCodec<T> codec(AllRecipeTypes recipeTypes) -
matches
public boolean matches(net.neoforged.neoforge.items.wrapper.RecipeWrapper inv, net.minecraft.world.level.Level p_77569_2_) -
getMaxInputCount
protected int getMaxInputCount()- Specified by:
getMaxInputCountin classProcessingRecipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
getMaxOutputCount
protected int getMaxOutputCount()- Specified by:
getMaxOutputCountin classProcessingRecipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
shouldKeepHeldItem
public boolean shouldKeepHeldItem() -
getRequiredHeldItem
public net.minecraft.world.item.crafting.Ingredient getRequiredHeldItem() -
getProcessedItem
public net.minecraft.world.item.crafting.Ingredient getProcessedItem() -
readAdditional
public void readAdditional(net.minecraft.network.FriendlyByteBuf buffer) - Overrides:
readAdditionalin classProcessingRecipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-
writeAdditional
public void writeAdditional(net.minecraft.network.FriendlyByteBuf buffer) - Overrides:
writeAdditionalin classProcessingRecipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
-