Package net.minecraft.recipe
Class SmithingTransformRecipe
java.lang.Object
net.minecraft.recipe.SmithingTransformRecipe
- All Implemented Interfaces:
- Recipe<Inventory>,- SmithingRecipe
- Mappings:
- Namespace - Name - official - cjq- intermediary - net/minecraft/class_8060- named - net/minecraft/recipe/SmithingTransformRecipe
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) final Ingredient(package private) final Ingredientprivate final Identifier(package private) final ItemStack(package private) final Ingredient
- 
Constructor SummaryConstructorsConstructorDescriptionSmithingTransformRecipe(Identifier id, Ingredient template, Ingredient base, Ingredient addition, ItemStack result) 
- 
Method SummaryModifier and TypeMethodDescriptioncraft(Inventory inventory, DynamicRegistryManager registryManager) Crafts this recipe.getId()Returns the ID of this recipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.Returns the serializer associated with this recipe.booleanisEmpty()Returns whether this recipe has no ingredient or has any empty ingredient.booleanReturns whether this recipe matches the contents inside theinventoryin the givenworld.booleantestAddition(ItemStack stack) booleanbooleantestTemplate(ItemStack stack) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.recipe.RecipegetGroup, getIngredients, getRemainder, isIgnoredInRecipeBook, showNotificationMethods inherited from interface net.minecraft.recipe.SmithingRecipecreateIcon, fits, getType
- 
Field Details- 
id- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcjq;a:Lacq;- intermediary - field_42029- Lnet/minecraft/class_8060;field_42029:Lnet/minecraft/class_2960;- named - id- Lnet/minecraft/recipe/SmithingTransformRecipe;id:Lnet/minecraft/util/Identifier;
 
- 
template- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcjq;b:Lciz;- intermediary - field_42030- Lnet/minecraft/class_8060;field_42030:Lnet/minecraft/class_1856;- named - template- Lnet/minecraft/recipe/SmithingTransformRecipe;template:Lnet/minecraft/recipe/Ingredient;
 
- 
base- Mappings:
- Namespace - Name - Mixin selector - official - c- Lcjq;c:Lciz;- intermediary - field_42031- Lnet/minecraft/class_8060;field_42031:Lnet/minecraft/class_1856;- named - base- Lnet/minecraft/recipe/SmithingTransformRecipe;base:Lnet/minecraft/recipe/Ingredient;
 
- 
addition- Mappings:
- Namespace - Name - Mixin selector - official - d- Lcjq;d:Lciz;- intermediary - field_42032- Lnet/minecraft/class_8060;field_42032:Lnet/minecraft/class_1856;- named - addition- Lnet/minecraft/recipe/SmithingTransformRecipe;addition:Lnet/minecraft/recipe/Ingredient;
 
- 
result- Mappings:
- Namespace - Name - Mixin selector - official - e- Lcjq;e:Lcfz;- intermediary - field_42033- Lnet/minecraft/class_8060;field_42033:Lnet/minecraft/class_1799;- named - result- Lnet/minecraft/recipe/SmithingTransformRecipe;result:Lnet/minecraft/item/ItemStack;
 
 
- 
- 
Constructor Details- 
SmithingTransformRecipepublic SmithingTransformRecipe(Identifier id, Ingredient template, Ingredient base, Ingredient addition, ItemStack result) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lcjq;<init>(Lacq;Lciz;Lciz;Lciz;Lcfz;)V- intermediary - <init>- Lnet/minecraft/class_8060;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;)V- named - <init>- Lnet/minecraft/recipe/SmithingTransformRecipe;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;)V
 
 
- 
- 
Method Details- 
matchesReturns whether this recipe matches the contents inside theinventoryin the givenworld.The worldcurrently is only used by the map cloning recipe to prevent duplication of explorer maps.- Specified by:
- matchesin interface- Recipe<Inventory>
- Parameters:
- inventory- the input inventory
- world- the input world
- Returns:
- whether this recipe matches the contents inside the
 inventoryin the givenworld
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcjc;a(Lbdq;Lcmm;)Z- intermediary - method_8115- Lnet/minecraft/class_1860;method_8115(Lnet/minecraft/class_1263;Lnet/minecraft/class_1937;)Z- named - matches- Lnet/minecraft/recipe/Recipe;matches(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/world/World;)Z
 
- 
craftCrafts this recipe.This method does not perform side effects on the inventory.This method should return a new item stack on each call. - Specified by:
- craftin interface- Recipe<Inventory>
- Parameters:
- inventory- the input inventory
- Returns:
- the resulting item stack
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcjc;a(Lbdq;Lhs;)Lcfz;- intermediary - method_8116- Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;- named - craft- Lnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
 
- 
getOutputReturns a preview of the recipe's output.The returned stack should not be modified. To obtain the actual output, call Recipe.craft(Inventory, DynamicRegistryManager).- Specified by:
- getOutputin interface- Recipe<Inventory>
- Returns:
- a preview of the recipe's output
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcjc;a(Lhs;)Lcfz;- intermediary - method_8110- Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;- named - getOutput- Lnet/minecraft/recipe/Recipe;getOutput(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
 
- 
testTemplate- Specified by:
- testTemplatein interface- SmithingRecipe
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcjp;a(Lcfz;)Z- intermediary - method_48453- Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Z- named - testTemplate- Lnet/minecraft/recipe/SmithingRecipe;testTemplate(Lnet/minecraft/item/ItemStack;)Z
 
- 
testBase- Specified by:
- testBasein interface- SmithingRecipe
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcjp;b(Lcfz;)Z- intermediary - method_48454- Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Z- named - testBase- Lnet/minecraft/recipe/SmithingRecipe;testBase(Lnet/minecraft/item/ItemStack;)Z
 
- 
testAddition- Specified by:
- testAdditionin interface- SmithingRecipe
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lcjp;c(Lcfz;)Z- intermediary - method_30029- Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Z- named - testAddition- Lnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Z
 
- 
getIdReturns the ID of this recipe.- Specified by:
- getIdin interface- Recipe<Inventory>
- Returns:
- the ID of this recipe
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lcjc;e()Lacq;- intermediary - method_8114- Lnet/minecraft/class_1860;method_8114()Lnet/minecraft/class_2960;- named - getId- Lnet/minecraft/recipe/Recipe;getId()Lnet/minecraft/util/Identifier;
 
- 
getSerializerReturns the serializer associated with this recipe.- Specified by:
- getSerializerin interface- Recipe<Inventory>
- Returns:
- the serializer associated with this recipe
- Mappings:
- Namespace - Name - Mixin selector - official - aj_- Lcjc;aj_()Lcje;- intermediary - method_8119- Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;- named - getSerializer- Lnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
 
- 
isEmptypublic boolean isEmpty()Returns whether this recipe has no ingredient or has any empty ingredient. The recipe book uses this to ignore recipes for display.- Specified by:
- isEmptyin interface- Recipe<Inventory>
- Returns:
- whether this recipe has no ingredient or has any empty ingredient
- Mappings:
- Namespace - Name - Mixin selector - official - j- Lcjc;j()Z- intermediary - method_31584- Lnet/minecraft/class_1860;method_31584()Z- named - isEmpty- Lnet/minecraft/recipe/Recipe;isEmpty()Z
 
 
-