Package net.minecraft.recipe
Class SmithingRecipe
java.lang.Object
net.minecraft.recipe.SmithingRecipe
- Mappings:
Namespace Name official cgiintermediary net/minecraft/class_5357named net/minecraft/recipe/SmithingRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Ingredient(package private) final Ingredientprivate final Identifier(package private) final ItemStack -
Constructor Summary
ConstructorsConstructorDescriptionSmithingRecipe(Identifier id, Ingredient base, Ingredient addition, ItemStack result) -
Method Summary
Modifier and TypeMethodDescriptionReturns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.booleanfits(int width, int height) Returns whether this recipe will fit into the given grid size.getId()Returns the ID of this recipe.Returns a preview of the recipe's output.Returns the serializer associated with this recipe.RecipeType<?>getType()Returns the type of this recipe.booleanisEmpty()Returns whether this recipe has no ingredient or has any empty ingredient.booleanbooleantestAddition(ItemStack stack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.recipe.Recipe
getGroup, getIngredients, getRemainder, isIgnoredInRecipeBook
-
Field Details
-
base
- Mappings:
Namespace Name Mixin selector official aLcgi;a:Lcfo;intermediary field_25389Lnet/minecraft/class_5357;field_25389:Lnet/minecraft/class_1856;named baseLnet/minecraft/recipe/SmithingRecipe;base:Lnet/minecraft/recipe/Ingredient;
-
addition
- Mappings:
Namespace Name Mixin selector official bLcgi;b:Lcfo;intermediary field_25390Lnet/minecraft/class_5357;field_25390:Lnet/minecraft/class_1856;named additionLnet/minecraft/recipe/SmithingRecipe;addition:Lnet/minecraft/recipe/Ingredient;
-
result
- Mappings:
Namespace Name Mixin selector official cLcgi;c:Lccw;intermediary field_25391Lnet/minecraft/class_5357;field_25391:Lnet/minecraft/class_1799;named resultLnet/minecraft/recipe/SmithingRecipe;result:Lnet/minecraft/item/ItemStack;
-
id
- Mappings:
Namespace Name Mixin selector official dLcgi;d:Labv;intermediary field_25392Lnet/minecraft/class_5357;field_25392:Lnet/minecraft/class_2960;named idLnet/minecraft/recipe/SmithingRecipe;id:Lnet/minecraft/util/Identifier;
-
-
Constructor Details
-
SmithingRecipe
- Mappings:
Namespace Name Mixin selector official <init>Lcgi;<init>(Labv;Lcfo;Lcfo;Lccw;)Vintermediary <init>Lnet/minecraft/class_5357;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;)Vnamed <init>Lnet/minecraft/recipe/SmithingRecipe;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;)V
-
-
Method Details
-
matches
- Specified by:
matchesin interfaceRecipe<Inventory>- Parameters:
inventory- the input inventoryworld- the input world- Mappings:
Namespace Name Mixin selector official aLcfr;a(Lbbn;Lciz;)Zintermediary method_8115Lnet/minecraft/class_1860;method_8115(Lnet/minecraft/class_1263;Lnet/minecraft/class_1937;)Znamed matchesLnet/minecraft/recipe/Recipe;matches(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/world/World;)Z
-
craft
- Specified by:
craftin interfaceRecipe<Inventory>- Parameters:
inventory- the input inventory- Mappings:
Namespace Name Mixin selector official aLcfr;a(Lbbn;)Lccw;intermediary method_8116Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;)Lnet/minecraft/class_1799;named craftLnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;)Lnet/minecraft/item/ItemStack;
-
fits
public boolean fits(int width, int height) Returns whether this recipe will fit into the given grid size.This is currently only used by recipe book.
- Specified by:
fitsin interfaceRecipe<Inventory>- Parameters:
width- the width of the input inventoryheight- the height of the input inventory- Returns:
- whether this recipe will fit into the given grid size
- Mappings:
Namespace Name Mixin selector official aLcfr;a(II)Zintermediary method_8113Lnet/minecraft/class_1860;method_8113(II)Znamed fitsLnet/minecraft/recipe/Recipe;fits(II)Z
-
getOutput
Returns a preview of the recipe's output.The returned stack should not be modified. To obtain the actual output, call
Recipe.craft(Inventory).- Specified by:
getOutputin interfaceRecipe<Inventory>- Returns:
- a preview of the recipe's output
- Mappings:
Namespace Name Mixin selector official cLcfr;c()Lccw;intermediary method_8110Lnet/minecraft/class_1860;method_8110()Lnet/minecraft/class_1799;named getOutputLnet/minecraft/recipe/Recipe;getOutput()Lnet/minecraft/item/ItemStack;
-
testAddition
- Mappings:
Namespace Name Mixin selector official aLcgi;a(Lccw;)Zintermediary method_30029Lnet/minecraft/class_5357;method_30029(Lnet/minecraft/class_1799;)Znamed testAdditionLnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Z
-
createIcon
Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked. This can be interpreted as a catalyst for the recipe.- Specified by:
createIconin interfaceRecipe<Inventory>- Returns:
- an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked
- Mappings:
Namespace Name Mixin selector official iLcfr;i()Lccw;intermediary method_17447Lnet/minecraft/class_1860;method_17447()Lnet/minecraft/class_1799;named createIconLnet/minecraft/recipe/Recipe;createIcon()Lnet/minecraft/item/ItemStack;
-
getId
Returns the ID of this recipe.- Specified by:
getIdin interfaceRecipe<Inventory>- Returns:
- the ID of this recipe
- Mappings:
Namespace Name Mixin selector official fLcfr;f()Labv;intermediary method_8114Lnet/minecraft/class_1860;method_8114()Lnet/minecraft/class_2960;named getIdLnet/minecraft/recipe/Recipe;getId()Lnet/minecraft/util/Identifier;
-
getSerializer
Returns the serializer associated with this recipe.- Specified by:
getSerializerin interfaceRecipe<Inventory>- Returns:
- the serializer associated with this recipe
- Mappings:
Namespace Name Mixin selector official W_Lcfr;W_()Lcft;intermediary method_8119Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;named getSerializerLnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
-
getType
Returns the type of this recipe.The
typein the recipe JSON format is the serializer instead.- Specified by:
getTypein interfaceRecipe<Inventory>- Returns:
- the type of this recipe
- Mappings:
Namespace Name Mixin selector official gLcfr;g()Lcfu;intermediary method_17716Lnet/minecraft/class_1860;method_17716()Lnet/minecraft/class_3956;named getTypeLnet/minecraft/recipe/Recipe;getType()Lnet/minecraft/recipe/RecipeType;
-
isEmpty
public 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 interfaceRecipe<Inventory>- Returns:
- whether this recipe has no ingredient or has any empty ingredient
- Mappings:
Namespace Name Mixin selector official jLcfr;j()Zintermediary method_31584Lnet/minecraft/class_1860;method_31584()Znamed isEmptyLnet/minecraft/recipe/Recipe;isEmpty()Z
-