Package net.minecraft

Class class_8060

java.lang.Object
net.minecraft.class_8060
All Implemented Interfaces:
class_8059, Recipe<Inventory>

public class class_8060 extends Object implements class_8059
Mappings:
Namespace Name
official cii
intermediary net/minecraft/class_8060
named net/minecraft/class_8060
  • Field Details

    • field_42029

      private final Identifier field_42029
      Mappings:
      Namespace Name Mixin selector
      official a Lcii;a:Lacs;
      intermediary field_42029 Lnet/minecraft/class_8060;field_42029:Lnet/minecraft/class_2960;
      named field_42029 Lnet/minecraft/class_8060;field_42029:Lnet/minecraft/util/Identifier;
    • field_42030

      final Ingredient field_42030
      Mappings:
      Namespace Name Mixin selector
      official b Lcii;b:Lchq;
      intermediary field_42030 Lnet/minecraft/class_8060;field_42030:Lnet/minecraft/class_1856;
      named field_42030 Lnet/minecraft/class_8060;field_42030:Lnet/minecraft/recipe/Ingredient;
    • field_42031

      final Ingredient field_42031
      Mappings:
      Namespace Name Mixin selector
      official c Lcii;c:Lchq;
      intermediary field_42031 Lnet/minecraft/class_8060;field_42031:Lnet/minecraft/class_1856;
      named field_42031 Lnet/minecraft/class_8060;field_42031:Lnet/minecraft/recipe/Ingredient;
    • field_42032

      final Ingredient field_42032
      Mappings:
      Namespace Name Mixin selector
      official d Lcii;d:Lchq;
      intermediary field_42032 Lnet/minecraft/class_8060;field_42032:Lnet/minecraft/class_1856;
      named field_42032 Lnet/minecraft/class_8060;field_42032:Lnet/minecraft/recipe/Ingredient;
    • field_42033

      final ItemStack field_42033
      Mappings:
      Namespace Name Mixin selector
      official e Lcii;e:Lcer;
      intermediary field_42033 Lnet/minecraft/class_8060;field_42033:Lnet/minecraft/class_1799;
      named field_42033 Lnet/minecraft/class_8060;field_42033:Lnet/minecraft/item/ItemStack;
  • 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 Lchu;a(Lbcz;Lcle;)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, DynamicRegistryManager dynamicRegistryManager)
      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 Lchu;a(Lbcz;Lhn;)Lcer;
      intermediary method_8116 Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;
      named craft Lnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
    • getOutput

      public ItemStack getOutput(DynamicRegistryManager dynamicRegistryManager)
      Returns a preview of the recipe's output.

      The returned stack should not be modified. To obtain the actual output, call

      invalid @link
      #craft(Inventory)
      .
      Specified by:
      getOutput in interface Recipe<Inventory>
      Returns:
      a preview of the recipe's output
      Mappings:
      Namespace Name Mixin selector
      official a Lchu;a(Lhn;)Lcer;
      intermediary method_8110 Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;
      named getOutput Lnet/minecraft/recipe/Recipe;getOutput(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
    • method_48453

      public boolean method_48453(ItemStack itemStack)
      Specified by:
      method_48453 in interface class_8059
      Mappings:
      Namespace Name Mixin selector
      official a Lcih;a(Lcer;)Z
      intermediary method_48453 Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Z
      named method_48453 Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/item/ItemStack;)Z
    • method_48454

      public boolean method_48454(ItemStack itemStack)
      Specified by:
      method_48454 in interface class_8059
      Mappings:
      Namespace Name Mixin selector
      official b Lcih;b(Lcer;)Z
      intermediary method_48454 Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Z
      named method_48454 Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/item/ItemStack;)Z
    • testAddition

      public boolean testAddition(ItemStack itemStack)
      Specified by:
      testAddition in interface class_8059
      Mappings:
      Namespace Name Mixin selector
      official c Lcih;c(Lcer;)Z
      intermediary method_30029 Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Z
      named testAddition Lnet/minecraft/class_8059;testAddition(Lnet/minecraft/item/ItemStack;)Z
    • getId

      public Identifier getId()
      Returns the ID of this recipe.
      Specified by:
      getId in interface Recipe<Inventory>
      Returns:
      the ID of this recipe
      Mappings:
      Namespace Name Mixin selector
      official e Lchu;e()Lacs;
      intermediary method_8114 Lnet/minecraft/class_1860;method_8114()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/recipe/Recipe;getId()Lnet/minecraft/util/Identifier;
    • 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 Z_ Lchu;Z_()Lchw;
      intermediary method_8119 Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;
      named getSerializer Lnet/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:
      isEmpty in interface Recipe<Inventory>
      Returns:
      whether this recipe has no ingredient or has any empty ingredient
      Mappings:
      Namespace Name Mixin selector
      official aa_ Lchu;aa_()Z
      intermediary method_31584 Lnet/minecraft/class_1860;method_31584()Z
      named isEmpty Lnet/minecraft/recipe/Recipe;isEmpty()Z