Package net.minecraft.recipe
Class SmithingRecipe
java.lang.Object
net.minecraft.recipe.SmithingRecipe
- Mappings:
Namespace Name official bty
intermediary net/minecraft/class_5357
named net/minecraft/recipe/SmithingRecipe
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) final Ingredient
(package private) final Ingredient
private final Identifier
(package private) final ItemStack
-
Constructor Summary
ConstructorDescriptionSmithingRecipe
(Identifier id, Ingredient base, Ingredient addition, ItemStack result) -
Method Summary
Modifier and TypeMethodDescriptionCrafts this recipe.Creates the stack that is displayed on the recipe book tab containing this recipe, and on a toast when a recipe of this type is unlocked.boolean
fits
(int width, int height) Determines whether this recipe's pattern will fit into the available crafting area.getId()
RecipeType<?>
getType()
boolean
isEmpty()
boolean
Determines whether this recipe matches the contents currently placed inside the available crafting grid.boolean
testAddition
(ItemStack stack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.recipe.Recipe
getGroup, getIngredients, getRemainder, isIgnoredInRecipeBook
-
Field Details
-
base
- Mappings:
Namespace Name Mixin selector official a
Lbty;a:Lbte;
intermediary field_25389
Lnet/minecraft/class_5357;field_25389:Lnet/minecraft/class_1856;
named base
Lnet/minecraft/recipe/SmithingRecipe;base:Lnet/minecraft/recipe/Ingredient;
-
addition
- Mappings:
Namespace Name Mixin selector official b
Lbty;b:Lbte;
intermediary field_25390
Lnet/minecraft/class_5357;field_25390:Lnet/minecraft/class_1856;
named addition
Lnet/minecraft/recipe/SmithingRecipe;addition:Lnet/minecraft/recipe/Ingredient;
-
result
- Mappings:
Namespace Name Mixin selector official c
Lbty;c:Lbqp;
intermediary field_25391
Lnet/minecraft/class_5357;field_25391:Lnet/minecraft/class_1799;
named result
Lnet/minecraft/recipe/SmithingRecipe;result:Lnet/minecraft/item/ItemStack;
-
id
- Mappings:
Namespace Name Mixin selector official d
Lbty;d:Lww;
intermediary field_25392
Lnet/minecraft/class_5357;field_25392:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/recipe/SmithingRecipe;id:Lnet/minecraft/util/Identifier;
-
-
Constructor Details
-
SmithingRecipe
- Mappings:
Namespace Name Mixin selector official <init>
Lbty;<init>(Lww;Lbte;Lbte;Lbqp;)V
intermediary <init>
Lnet/minecraft/class_5357;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;)V
named <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
Determines whether this recipe matches the contents currently placed inside the available crafting grid.- Specified by:
matches
in interfaceRecipe<Inventory>
- Mappings:
Namespace Name Mixin selector official a
Lbth;a(Lart;Lbwp;)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
-
craft
Crafts this recipe.This method may perform side effects on the
inventory
argument.This method should return a new item stack on each call.
- Specified by:
craft
in interfaceRecipe<Inventory>
- Returns:
- the resulting item stack
- Mappings:
Namespace Name Mixin selector official a
Lbth;a(Lart;)Lbqp;
intermediary method_8116
Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;)Lnet/minecraft/class_1799;
named craft
Lnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;)Lnet/minecraft/item/ItemStack;
-
fits
public boolean fits(int width, int height) Determines whether this recipe's pattern will fit into the available crafting area. -
getOutput
-
testAddition
- Mappings:
Namespace Name Mixin selector official a
Lbty;a(Lbqp;)Z
intermediary method_30029
Lnet/minecraft/class_5357;method_30029(Lnet/minecraft/class_1799;)Z
named testAddition
Lnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Z
-
createIcon
Creates the stack that is displayed on the recipe book tab containing this recipe, and on a toast when a recipe of this type is unlocked. Used in conjunction withRecipe.getGroup()
.- Specified by:
createIcon
in interfaceRecipe<Inventory>
- Mappings:
Namespace Name Mixin selector official h
Lbth;h()Lbqp;
intermediary method_17447
Lnet/minecraft/class_1860;method_17447()Lnet/minecraft/class_1799;
named createIcon
Lnet/minecraft/recipe/Recipe;createIcon()Lnet/minecraft/item/ItemStack;
-
getId
-
getSerializer
- Specified by:
getSerializer
in interfaceRecipe<Inventory>
- Mappings:
Namespace Name Mixin selector official R_
Lbth;R_()Lbtj;
intermediary method_8119
Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;
named getSerializer
Lnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
-
getType
-
isEmpty
public boolean isEmpty()
-