Package net.minecraft

Class class_9542

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

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

    • field_50719

      private final RecipeType<?> field_50719
      Mappings:
      Namespace Name Mixin selector
      official b Lcyz;b:Lczf;
      intermediary field_50719 Lnet/minecraft/class_9542;field_50719:Lnet/minecraft/class_3956;
      named field_50719 Lnet/minecraft/class_9542;field_50719: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/class_9542;field_50720:Ljava/lang/String;
    • field_50721

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

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

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

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

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

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

  • 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;
    • method_59069

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