Package net.minecraft.recipe
Class SmithingTrimRecipe
java.lang.Object
net.minecraft.recipe.SmithingTrimRecipe
- All Implemented Interfaces:
Recipe<SmithingRecipeInput>
,SmithingRecipe
- Mappings:
Namespace Name named net/minecraft/recipe/SmithingTrimRecipe
intermediary net/minecraft/class_8062
official czu
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) final Ingredient
(package private) final Ingredient
(package private) final Ingredient
Fields inherited from interface net.minecraft.recipe.Recipe
CODEC, PACKET_CODEC
-
Constructor Summary
ConstructorDescriptionSmithingTrimRecipe
(Ingredient template, Ingredient base, Ingredient addition) -
Method Summary
Modifier and TypeMethodDescriptioncraft
(SmithingRecipeInput smithingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) Crafts this recipe.getResult
(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.Returns the serializer associated with this recipe.boolean
isEmpty()
Returns whether this recipe has no ingredient or has any empty ingredient.boolean
matches
(SmithingRecipeInput smithingRecipeInput, World world) Returns whether this recipe matches the contents inside theinventory
in the givenworld
.boolean
testAddition
(ItemStack stack) boolean
boolean
testTemplate
(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, showNotification
Methods inherited from interface net.minecraft.recipe.SmithingRecipe
createIcon, fits, getType
-
Field Details
-
template
- Mappings:
Namespace Name Mixin selector named template
Lnet/minecraft/recipe/SmithingTrimRecipe;template:Lnet/minecraft/recipe/Ingredient;
intermediary field_42035
Lnet/minecraft/class_8062;field_42035:Lnet/minecraft/class_1856;
official a
Lczu;a:Lcyw;
-
base
- Mappings:
Namespace Name Mixin selector named base
Lnet/minecraft/recipe/SmithingTrimRecipe;base:Lnet/minecraft/recipe/Ingredient;
intermediary field_42036
Lnet/minecraft/class_8062;field_42036:Lnet/minecraft/class_1856;
official b
Lczu;b:Lcyw;
-
addition
- Mappings:
Namespace Name Mixin selector named addition
Lnet/minecraft/recipe/SmithingTrimRecipe;addition:Lnet/minecraft/recipe/Ingredient;
intermediary field_42037
Lnet/minecraft/class_8062;field_42037:Lnet/minecraft/class_1856;
official c
Lczu;c:Lcyw;
-
-
Constructor Details
-
SmithingTrimRecipe
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/recipe/SmithingTrimRecipe;<init>(Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;)V
intermediary <init>
Lnet/minecraft/class_8062;<init>(Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;)V
official <init>
Lczu;<init>(Lcyw;Lcyw;Lcyw;)V
-
-
Method Details
-
matches
Description copied from interface:Recipe
Returns whether this recipe matches the contents inside theinventory
in the givenworld
.The
world
currently is only used by the map cloning recipe to prevent duplication of explorer maps.- Specified by:
matches
in interfaceRecipe<SmithingRecipeInput>
- Parameters:
world
- the input world- Returns:
- whether this recipe matches the contents inside the
inventory
in the givenworld
- Mappings:
Namespace Name Mixin selector named matches
Lnet/minecraft/recipe/SmithingTrimRecipe;matches(Lnet/minecraft/recipe/input/SmithingRecipeInput;Lnet/minecraft/world/World;)Z
intermediary method_60001
Lnet/minecraft/class_8062;method_60001(Lnet/minecraft/class_9697;Lnet/minecraft/class_1937;)Z
official a
Lczu;a(Lczs;Ldcw;)Z
-
craft
public ItemStack craft(SmithingRecipeInput smithingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) Description copied from interface:Recipe
Crafts 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:
craft
in interfaceRecipe<SmithingRecipeInput>
- Returns:
- the resulting item stack
- Mappings:
Namespace Name Mixin selector named craft
Lnet/minecraft/recipe/SmithingTrimRecipe;craft(Lnet/minecraft/recipe/input/SmithingRecipeInput;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;
intermediary method_60002
Lnet/minecraft/class_8062;method_60002(Lnet/minecraft/class_9697;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;
official a
Lczu;a(Lczs;Ljo$a;)Lcuq;
-
getResult
Returns a preview of the recipe's output.The returned stack should not be modified. To obtain the actual output, call
craft(Inventory, DynamicRegistryManager)
.- Specified by:
getResult
in interfaceRecipe<SmithingRecipeInput>
- Returns:
- a preview of the recipe's output
- Mappings:
Namespace Name Mixin selector named getResult
Lnet/minecraft/recipe/Recipe;getResult(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;
intermediary method_8110
Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;
official a
Lcyz;a(Ljo$a;)Lcuq;
-
testTemplate
- Specified by:
testTemplate
in interfaceSmithingRecipe
- Mappings:
Namespace Name Mixin selector named testTemplate
Lnet/minecraft/recipe/SmithingRecipe;testTemplate(Lnet/minecraft/item/ItemStack;)Z
intermediary method_48453
Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Z
official a
Lczr;a(Lcuq;)Z
-
testBase
- Specified by:
testBase
in interfaceSmithingRecipe
- Mappings:
Namespace Name Mixin selector named testBase
Lnet/minecraft/recipe/SmithingRecipe;testBase(Lnet/minecraft/item/ItemStack;)Z
intermediary method_48454
Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Z
official b
Lczr;b(Lcuq;)Z
-
testAddition
- Specified by:
testAddition
in interfaceSmithingRecipe
- Mappings:
Namespace Name Mixin selector named testAddition
Lnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Z
intermediary method_30029
Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Z
official c
Lczr;c(Lcuq;)Z
-
getSerializer
Returns the serializer associated with this recipe.- Specified by:
getSerializer
in interfaceRecipe<SmithingRecipeInput>
- Returns:
- the serializer associated with this recipe
- Mappings:
Namespace Name Mixin selector named getSerializer
Lnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
intermediary method_8119
Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;
official at_
Lcyz;at_()Lcze;
-
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:
isEmpty
in interfaceRecipe<SmithingRecipeInput>
- Returns:
- whether this recipe has no ingredient or has any empty ingredient
- Mappings:
Namespace Name Mixin selector named isEmpty
Lnet/minecraft/recipe/Recipe;isEmpty()Z
intermediary method_31584
Lnet/minecraft/class_1860;method_31584()Z
official i
Lcyz;i()Z
-