Class PotatoRefinementRecipe

java.lang.Object
net.minecraft.recipe.PotatoRefinementRecipe
All Implemented Interfaces:
Recipe<Inventory>

public class PotatoRefinementRecipe extends Object implements Recipe<Inventory>
Mappings:
Namespace Name
official cyz
intermediary net/minecraft/class_9542
named net/minecraft/recipe/PotatoRefinementRecipe
  • Field Details

    • TYPE

      private final RecipeType<?> TYPE
      Mappings:
      Namespace Name Mixin selector
      official b Lcyz;b:Lczf;
      intermediary field_50719 Lnet/minecraft/class_9542;field_50719:Lnet/minecraft/class_3956;
      named TYPE Lnet/minecraft/recipe/PotatoRefinementRecipe;TYPE:Lnet/minecraft/recipe/RecipeType;
    • field_50720

      private final String field_50720
      Mappings:
      Namespace Name Mixin selector
      official c Lcyz;c:Ljava/lang/String;
      intermediary field_50720 Lnet/minecraft/class_9542;field_50720:Ljava/lang/String;
      named field_50720 Lnet/minecraft/recipe/PotatoRefinementRecipe;field_50720:Ljava/lang/String;
    • category

      private final CookingRecipeCategory category
      Mappings:
      Namespace Name Mixin selector
      official d Lcyz;d:Lcyn;
      intermediary field_50721 Lnet/minecraft/class_9542;field_50721:Lnet/minecraft/class_7709;
      named category Lnet/minecraft/recipe/PotatoRefinementRecipe;category:Lnet/minecraft/recipe/book/CookingRecipeCategory;
    • ingredient

      final Ingredient ingredient
      Mappings:
      Namespace Name Mixin selector
      official e Lcyz;e:Lcyv;
      intermediary field_50722 Lnet/minecraft/class_9542;field_50722:Lnet/minecraft/class_1856;
      named ingredient Lnet/minecraft/recipe/PotatoRefinementRecipe;ingredient:Lnet/minecraft/recipe/Ingredient;
    • bottleIngredient

      final Ingredient bottleIngredient
      Mappings:
      Namespace Name Mixin selector
      official f Lcyz;f:Lcyv;
      intermediary field_50723 Lnet/minecraft/class_9542;field_50723:Lnet/minecraft/class_1856;
      named bottleIngredient Lnet/minecraft/recipe/PotatoRefinementRecipe;bottleIngredient:Lnet/minecraft/recipe/Ingredient;
    • result

      final ItemStack result
      Mappings:
      Namespace Name Mixin selector
      official g Lcyz;g:Lcuh;
      intermediary field_50724 Lnet/minecraft/class_9542;field_50724:Lnet/minecraft/class_1799;
      named result Lnet/minecraft/recipe/PotatoRefinementRecipe;result:Lnet/minecraft/item/ItemStack;
    • experience

      final float experience
      Mappings:
      Namespace Name Mixin selector
      official j Lcyz;j:F
      intermediary field_50725 Lnet/minecraft/class_9542;field_50725:F
      named experience Lnet/minecraft/recipe/PotatoRefinementRecipe;experience:F
    • refinementTime

      protected final int refinementTime
      Mappings:
      Namespace Name Mixin selector
      official a Lcyz;a:I
      intermediary field_50718 Lnet/minecraft/class_9542;field_50718:I
      named refinementTime Lnet/minecraft/recipe/PotatoRefinementRecipe;refinementTime:I
  • Constructor Details

    • PotatoRefinementRecipe

      public PotatoRefinementRecipe(Ingredient ingredient, Ingredient bottleIngredient, ItemStack result, float experience, int refinementTime)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcyz;<init>(Lcyv;Lcyv;Lcuh;FI)V
      intermediary <init> Lnet/minecraft/class_9542;<init>(Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;FI)V
      named <init> Lnet/minecraft/recipe/PotatoRefinementRecipe;<init>(Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;FI)V
    • PotatoRefinementRecipe

      private PotatoRefinementRecipe(String string, CookingRecipeCategory category, Ingredient ingredient, Ingredient bottleIngredient, ItemStack result, float experience, int refinementTime)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcyz;<init>(Ljava/lang/String;Lcyn;Lcyv;Lcyv;Lcuh;FI)V
      intermediary <init> Lnet/minecraft/class_9542;<init>(Ljava/lang/String;Lnet/minecraft/class_7709;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;FI)V
      named <init> Lnet/minecraft/recipe/PotatoRefinementRecipe;<init>(Ljava/lang/String;Lnet/minecraft/recipe/book/CookingRecipeCategory;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;FI)V
  • Method Details

    • matches

      public boolean matches(Inventory inventory, World world)
      Returns whether this recipe matches the contents inside the inventory in the given world.

      The world currently is only used by the map cloning recipe to prevent duplication of explorer maps.

      Specified by:
      matches in interface Recipe<Inventory>
      Parameters:
      inventory - the input inventory
      world - the input world
      Returns:
      whether this recipe matches the contents inside the inventory in the given world
      Mappings:
      Namespace Name Mixin selector
      official a Lcza;a(Lbpt;Ldca;)Z
      intermediary method_8115 Lnet/minecraft/class_1860;method_8115(Lnet/minecraft/class_1263;Lnet/minecraft/class_1937;)Z
      named matches Lnet/minecraft/recipe/Recipe;matches(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/world/World;)Z
    • craft

      public ItemStack craft(Inventory inventory, RegistryWrapper.WrapperLookup lookup)
      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 interface Recipe<Inventory>
      Parameters:
      inventory - the input inventory
      Returns:
      the resulting item stack
      Mappings:
      Namespace Name Mixin selector
      official a Lcza;a(Lbpt;Ljc$a;)Lcuh;
      intermediary method_8116 Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;
      named craft Lnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;
    • fits

      public boolean fits(int width, int height)
      Returns whether this recipe will fit into the given grid size.

      This is currently only used by recipe book.

      Specified by:
      fits in interface Recipe<Inventory>
      Parameters:
      width - the width of the input inventory
      height - the height of the input inventory
      Returns:
      whether this recipe will fit into the given grid size
      Mappings:
      Namespace Name Mixin selector
      official a Lcza;a(II)Z
      intermediary method_8113 Lnet/minecraft/class_1860;method_8113(II)Z
      named fits Lnet/minecraft/recipe/Recipe;fits(II)Z
    • getResult

      public ItemStack getResult(RegistryWrapper.WrapperLookup registriesLookup)
      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:
      getResult in interface Recipe<Inventory>
      Returns:
      a preview of the recipe's output
      Mappings:
      Namespace Name Mixin selector
      official a Lcza;a(Ljc$a;)Lcuh;
      intermediary method_8110 Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;
      named getResult Lnet/minecraft/recipe/Recipe;getResult(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;
    • createIcon

      public ItemStack createIcon()
      Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked. This can be interpreted as a catalyst for the recipe.
      Specified by:
      createIcon in interface Recipe<Inventory>
      Returns:
      an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked
      Mappings:
      Namespace Name Mixin selector
      official g Lcza;g()Lcuh;
      intermediary method_17447 Lnet/minecraft/class_1860;method_17447()Lnet/minecraft/class_1799;
      named createIcon Lnet/minecraft/recipe/Recipe;createIcon()Lnet/minecraft/item/ItemStack;
    • getSerializer

      public RecipeSerializer<?> getSerializer()
      Returns the serializer associated with this recipe.
      Specified by:
      getSerializer in interface Recipe<Inventory>
      Returns:
      the serializer associated with this recipe
      Mappings:
      Namespace Name Mixin selector
      official ao_ Lcza;ao_()Lcze;
      intermediary method_8119 Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;
      named getSerializer Lnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
    • getType

      public RecipeType<?> getType()
      Returns the type of this recipe.

      The type in the recipe JSON format is the serializer instead.

      Specified by:
      getType in interface Recipe<Inventory>
      Returns:
      the type of this recipe
      Mappings:
      Namespace Name Mixin selector
      official e Lcza;e()Lczf;
      intermediary method_17716 Lnet/minecraft/class_1860;method_17716()Lnet/minecraft/class_3956;
      named getType Lnet/minecraft/recipe/Recipe;getType()Lnet/minecraft/recipe/RecipeType;
    • getRefinementTime

      public int getRefinementTime()
      Mappings:
      Namespace Name Mixin selector
      official d Lcyz;d()I
      intermediary method_59069 Lnet/minecraft/class_9542;method_59069()I
      named getRefinementTime Lnet/minecraft/recipe/PotatoRefinementRecipe;getRefinementTime()I