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/SmithingTrimRecipeintermediary net/minecraft/class_8062official czu
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Ingredient(package private) final Ingredient(package private) final IngredientFields inherited from interface net.minecraft.recipe.Recipe
CODEC, PACKET_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTrimRecipe(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.booleanisEmpty()Returns whether this recipe has no ingredient or has any empty ingredient.booleanmatches(SmithingRecipeInput smithingRecipeInput, World world) Returns whether this recipe matches the contents inside theinventoryin the givenworld.booleantestAddition(ItemStack stack) booleanbooleantestTemplate(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, showNotificationMethods inherited from interface net.minecraft.recipe.SmithingRecipe
createIcon, fits, getType
-
Field Details
-
template
- Mappings:
Namespace Name Mixin selector named templateLnet/minecraft/recipe/SmithingTrimRecipe;template:Lnet/minecraft/recipe/Ingredient;intermediary field_42035Lnet/minecraft/class_8062;field_42035:Lnet/minecraft/class_1856;official aLczu;a:Lcyw;
-
base
- Mappings:
Namespace Name Mixin selector named baseLnet/minecraft/recipe/SmithingTrimRecipe;base:Lnet/minecraft/recipe/Ingredient;intermediary field_42036Lnet/minecraft/class_8062;field_42036:Lnet/minecraft/class_1856;official bLczu;b:Lcyw;
-
addition
- Mappings:
Namespace Name Mixin selector named additionLnet/minecraft/recipe/SmithingTrimRecipe;addition:Lnet/minecraft/recipe/Ingredient;intermediary field_42037Lnet/minecraft/class_8062;field_42037:Lnet/minecraft/class_1856;official cLczu;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;)Vintermediary <init>Lnet/minecraft/class_8062;<init>(Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;)Vofficial <init>Lczu;<init>(Lcyw;Lcyw;Lcyw;)V
-
-
Method Details
-
matches
Description copied from interface:RecipeReturns 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 interfaceRecipe<SmithingRecipeInput>- Parameters:
world- the input world- Returns:
- whether this recipe matches the contents inside the
inventoryin the givenworld - Mappings:
Namespace Name Mixin selector named matchesLnet/minecraft/recipe/SmithingTrimRecipe;matches(Lnet/minecraft/recipe/input/SmithingRecipeInput;Lnet/minecraft/world/World;)Zintermediary method_60001Lnet/minecraft/class_8062;method_60001(Lnet/minecraft/class_9697;Lnet/minecraft/class_1937;)Zofficial aLczu;a(Lczs;Ldcw;)Z
-
craft
public ItemStack craft(SmithingRecipeInput smithingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) Description copied from interface:RecipeCrafts 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 interfaceRecipe<SmithingRecipeInput>- Returns:
- the resulting item stack
- Mappings:
Namespace Name Mixin selector named craftLnet/minecraft/recipe/SmithingTrimRecipe;craft(Lnet/minecraft/recipe/input/SmithingRecipeInput;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;intermediary method_60002Lnet/minecraft/class_8062;method_60002(Lnet/minecraft/class_9697;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;official aLczu;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:
getResultin interfaceRecipe<SmithingRecipeInput>- Returns:
- a preview of the recipe's output
- Mappings:
Namespace Name Mixin selector named getResultLnet/minecraft/recipe/Recipe;getResult(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;intermediary method_8110Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;official aLcyz;a(Ljo$a;)Lcuq;
-
testTemplate
- Specified by:
testTemplatein interfaceSmithingRecipe- Mappings:
Namespace Name Mixin selector named testTemplateLnet/minecraft/recipe/SmithingRecipe;testTemplate(Lnet/minecraft/item/ItemStack;)Zintermediary method_48453Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Zofficial aLczr;a(Lcuq;)Z
-
testBase
- Specified by:
testBasein interfaceSmithingRecipe- Mappings:
Namespace Name Mixin selector named testBaseLnet/minecraft/recipe/SmithingRecipe;testBase(Lnet/minecraft/item/ItemStack;)Zintermediary method_48454Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Zofficial bLczr;b(Lcuq;)Z
-
testAddition
- Specified by:
testAdditionin interfaceSmithingRecipe- Mappings:
Namespace Name Mixin selector named testAdditionLnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Zintermediary method_30029Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Zofficial cLczr;c(Lcuq;)Z
-
getSerializer
Returns the serializer associated with this recipe.- Specified by:
getSerializerin interfaceRecipe<SmithingRecipeInput>- Returns:
- the serializer associated with this recipe
- Mappings:
Namespace Name Mixin selector named getSerializerLnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;intermediary method_8119Lnet/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:
isEmptyin interfaceRecipe<SmithingRecipeInput>- Returns:
- whether this recipe has no ingredient or has any empty ingredient
- Mappings:
Namespace Name Mixin selector named isEmptyLnet/minecraft/recipe/Recipe;isEmpty()Zintermediary method_31584Lnet/minecraft/class_1860;method_31584()Zofficial iLcyz;i()Z
-