Package net.minecraft.recipe
Class SmithingTransformRecipe
java.lang.Object
net.minecraft.recipe.SmithingTransformRecipe
- All Implemented Interfaces:
Recipe<Inventory>,SmithingRecipe
- Mappings:
Namespace Name named net/minecraft/recipe/SmithingTransformRecipeintermediary net/minecraft/class_8060official czo
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Ingredient(package private) final Ingredient(package private) final ItemStack(package private) final IngredientFields inherited from interface net.minecraft.recipe.Recipe
CODEC, PACKET_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTransformRecipe(Ingredient template, Ingredient base, Ingredient addition, ItemStack result) -
Method Summary
Modifier and TypeMethodDescriptioncraft(Inventory inventory, RegistryWrapper.WrapperLookup lookup) 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.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
-
template
- Mappings:
Namespace Name Mixin selector named templateLnet/minecraft/recipe/SmithingTransformRecipe;template:Lnet/minecraft/recipe/Ingredient;intermediary field_42030Lnet/minecraft/class_8060;field_42030:Lnet/minecraft/class_1856;official aLczo;a:Lcyu;
-
base
- Mappings:
Namespace Name Mixin selector named baseLnet/minecraft/recipe/SmithingTransformRecipe;base:Lnet/minecraft/recipe/Ingredient;intermediary field_42031Lnet/minecraft/class_8060;field_42031:Lnet/minecraft/class_1856;official bLczo;b:Lcyu;
-
addition
- Mappings:
Namespace Name Mixin selector named additionLnet/minecraft/recipe/SmithingTransformRecipe;addition:Lnet/minecraft/recipe/Ingredient;intermediary field_42032Lnet/minecraft/class_8060;field_42032:Lnet/minecraft/class_1856;official cLczo;c:Lcyu;
-
result
- Mappings:
Namespace Name Mixin selector named resultLnet/minecraft/recipe/SmithingTransformRecipe;result:Lnet/minecraft/item/ItemStack;intermediary field_42033Lnet/minecraft/class_8060;field_42033:Lnet/minecraft/class_1799;official dLczo;d:Lcur;
-
-
Constructor Details
-
SmithingTransformRecipe
public SmithingTransformRecipe(Ingredient template, Ingredient base, Ingredient addition, ItemStack result) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/recipe/SmithingTransformRecipe;<init>(Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;)Vintermediary <init>Lnet/minecraft/class_8060;<init>(Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;)Vofficial <init>Lczo;<init>(Lcyu;Lcyu;Lcyu;Lcur;)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 named matchesLnet/minecraft/recipe/Recipe;matches(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/world/World;)Zintermediary method_8115Lnet/minecraft/class_1860;method_8115(Lnet/minecraft/class_1263;Lnet/minecraft/class_1937;)Zofficial aLcyx;a(Lbqp;Ldca;)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 named craftLnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;intermediary method_8116Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;official aLcyx;a(Lbqp;Ljk$a;)Lcur;
-
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<Inventory>- 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 aLcyx;a(Ljk$a;)Lcur;
-
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 aLczn;a(Lcur;)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 bLczn;b(Lcur;)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 cLczn;c(Lcur;)Z
-
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 named getSerializerLnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;intermediary method_8119Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;official ao_Lcyx;ao_()Lczb;
-
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 named isEmptyLnet/minecraft/recipe/Recipe;isEmpty()Zintermediary method_31584Lnet/minecraft/class_1860;method_31584()Zofficial iLcyx;i()Z
-