Package net.minecraft.recipe
Class SmithingTransformRecipe
java.lang.Object
net.minecraft.recipe.SmithingTransformRecipe
- All Implemented Interfaces:
Recipe<SmithingRecipeInput>,SmithingRecipe
- Mappings:
Namespace Name named net/minecraft/recipe/SmithingTransformRecipeintermediary net/minecraft/class_8060official dan
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Optional<Ingredient> (package private) final Optional<Ingredient> private @Nullable class_9887(package private) final ItemStack(package private) final Optional<Ingredient> Fields inherited from interface net.minecraft.recipe.Recipe
CODEC, PACKET_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTransformRecipe(Optional<Ingredient> optional, Optional<Ingredient> optional2, Optional<Ingredient> optional3, ItemStack result) -
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.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, getRemainder, isIgnoredInRecipeBook, showNotificationMethods inherited from interface net.minecraft.recipe.SmithingRecipe
createIcon, fits, getType, matches
-
Field Details
-
template
- Mappings:
Namespace Name Mixin selector named templateLnet/minecraft/recipe/SmithingTransformRecipe;template:Ljava/util/Optional;intermediary field_42030Lnet/minecraft/class_8060;field_42030:Ljava/util/Optional;official aLdan;a:Ljava/util/Optional;
-
base
- Mappings:
Namespace Name Mixin selector named baseLnet/minecraft/recipe/SmithingTransformRecipe;base:Ljava/util/Optional;intermediary field_42031Lnet/minecraft/class_8060;field_42031:Ljava/util/Optional;official bLdan;b:Ljava/util/Optional;
-
addition
- Mappings:
Namespace Name Mixin selector named additionLnet/minecraft/recipe/SmithingTransformRecipe;addition:Ljava/util/Optional;intermediary field_42032Lnet/minecraft/class_8060;field_42032:Ljava/util/Optional;official cLdan;c:Ljava/util/Optional;
-
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 dLdan;d:Lcvl;
-
field_52605
- Mappings:
Namespace Name Mixin selector named field_52605Lnet/minecraft/recipe/SmithingTransformRecipe;field_52605:Lnet/minecraft/class_9887;intermediary field_52605Lnet/minecraft/class_8060;field_52605:Lnet/minecraft/class_9887;official eLdan;e:Lczs;
-
-
Constructor Details
-
SmithingTransformRecipe
public SmithingTransformRecipe(Optional<Ingredient> optional, Optional<Ingredient> optional2, Optional<Ingredient> optional3, ItemStack result) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/recipe/SmithingTransformRecipe;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/item/ItemStack;)Vintermediary <init>Lnet/minecraft/class_8060;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_1799;)Vofficial <init>Ldan;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Lcvl;)V
-
-
Method Details
-
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/SmithingTransformRecipe;craft(Lnet/minecraft/recipe/input/SmithingRecipeInput;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;intermediary method_60000Lnet/minecraft/class_8060;method_60000(Lnet/minecraft/class_9697;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;official aLdan;a(Ldam;Ljp$a;)Lcvl;
-
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 aLczt;a(Ljp$a;)Lcvl;
-
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 aLdal;a(Lcvl;)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 bLdal;b(Lcvl;)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 cLdal;c(Lcvl;)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 as_Lczt;as_()Lczy;
-
method_61671
- Specified by:
method_61671in interfaceRecipe<SmithingRecipeInput>- Mappings:
Namespace Name Mixin selector named method_61671Lnet/minecraft/recipe/Recipe;method_61671()Lnet/minecraft/class_9887;intermediary method_61671Lnet/minecraft/class_1860;method_61671()Lnet/minecraft/class_9887;official aLczt;a()Lczs;
-