Package net.minecraft.recipe
Class SmithingTrimRecipe
java.lang.Object
net.minecraft.recipe.SmithingTrimRecipe
- All Implemented Interfaces:
Recipe<Inventory>,SmithingRecipe
- Mappings:
Namespace Name official cjpintermediary net/minecraft/class_8062named net/minecraft/recipe/SmithingTrimRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Ingredient(package private) final Ingredientprivate final Identifier(package private) final Ingredient -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTrimRecipe(Identifier id, Ingredient template, Ingredient base, Ingredient addition) -
Method Summary
Modifier 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.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
-
id
- Mappings:
Namespace Name Mixin selector official aLcjp;a:Lacq;intermediary field_42034Lnet/minecraft/class_8062;field_42034:Lnet/minecraft/class_2960;named idLnet/minecraft/recipe/SmithingTrimRecipe;id:Lnet/minecraft/util/Identifier;
-
template
- Mappings:
Namespace Name Mixin selector official bLcjp;b:Lcix;intermediary field_42035Lnet/minecraft/class_8062;field_42035:Lnet/minecraft/class_1856;named templateLnet/minecraft/recipe/SmithingTrimRecipe;template:Lnet/minecraft/recipe/Ingredient;
-
base
- Mappings:
Namespace Name Mixin selector official cLcjp;c:Lcix;intermediary field_42036Lnet/minecraft/class_8062;field_42036:Lnet/minecraft/class_1856;named baseLnet/minecraft/recipe/SmithingTrimRecipe;base:Lnet/minecraft/recipe/Ingredient;
-
addition
- Mappings:
Namespace Name Mixin selector official dLcjp;d:Lcix;intermediary field_42037Lnet/minecraft/class_8062;field_42037:Lnet/minecraft/class_1856;named additionLnet/minecraft/recipe/SmithingTrimRecipe;addition:Lnet/minecraft/recipe/Ingredient;
-
-
Constructor Details
-
SmithingTrimRecipe
- Mappings:
Namespace Name Mixin selector official <init>Lcjp;<init>(Lacq;Lcix;Lcix;Lcix;)Vintermediary <init>Lnet/minecraft/class_8062;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;)Vnamed <init>Lnet/minecraft/recipe/SmithingTrimRecipe;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;)V
-
-
Method Details
-
matches
Returns 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<Inventory>- Parameters:
inventory- the input inventoryworld- the input world- Returns:
- whether this recipe matches the contents inside the
inventoryin the givenworld - Mappings:
Namespace Name Mixin selector official aLcja;a(Lbdp;Lcmk;)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
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:
craftin interfaceRecipe<Inventory>- Parameters:
inventory- the input inventory- Returns:
- the resulting item stack
- Mappings:
Namespace Name Mixin selector official aLcja;a(Lbdp;Lhs;)Lcfx;intermediary method_8116Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;named craftLnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
-
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, DynamicRegistryManager).- Specified by:
getOutputin interfaceRecipe<Inventory>- Returns:
- a preview of the recipe's output
- Mappings:
Namespace Name Mixin selector official aLcja;a(Lhs;)Lcfx;intermediary method_8110Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;named getOutputLnet/minecraft/recipe/Recipe;getOutput(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
-
testTemplate
- Specified by:
testTemplatein interfaceSmithingRecipe- Mappings:
Namespace Name Mixin selector official aLcjn;a(Lcfx;)Zintermediary method_48453Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Znamed testTemplateLnet/minecraft/recipe/SmithingRecipe;testTemplate(Lnet/minecraft/item/ItemStack;)Z
-
testBase
- Specified by:
testBasein interfaceSmithingRecipe- Mappings:
Namespace Name Mixin selector official bLcjn;b(Lcfx;)Zintermediary method_48454Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Znamed testBaseLnet/minecraft/recipe/SmithingRecipe;testBase(Lnet/minecraft/item/ItemStack;)Z
-
testAddition
- Specified by:
testAdditionin interfaceSmithingRecipe- Mappings:
Namespace Name Mixin selector official cLcjn;c(Lcfx;)Zintermediary method_30029Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Znamed testAdditionLnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Z
-
getId
Returns the ID of this recipe.- Specified by:
getIdin interfaceRecipe<Inventory>- Returns:
- the ID of this recipe
- Mappings:
Namespace Name Mixin selector official eLcja;e()Lacq;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 ai_Lcja;ai_()Lcjc;intermediary method_8119Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;named getSerializerLnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
-
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 jLcja;j()Zintermediary method_31584Lnet/minecraft/class_1860;method_31584()Znamed isEmptyLnet/minecraft/recipe/Recipe;isEmpty()Z
-