Package net.minecraft

Interface class_8059

All Superinterfaces:
Recipe<Inventory>
All Known Implementing Classes:
class_8060, class_8062, SmithingRecipe

public interface class_8059 extends Recipe<Inventory>
Mappings:
Namespace Name
official cih
intermediary net/minecraft/class_8059
named net/minecraft/class_8059
  • Method Details

    • getType

      default 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 f Lchu;f()Lchx;
      intermediary method_17716 Lnet/minecraft/class_1860;method_17716()Lnet/minecraft/class_3956;
      named getType Lnet/minecraft/recipe/Recipe;getType()Lnet/minecraft/recipe/RecipeType;
    • fits

      default 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 Lchu;a(II)Z
      intermediary method_8113 Lnet/minecraft/class_1860;method_8113(II)Z
      named fits Lnet/minecraft/recipe/Recipe;fits(II)Z
    • createIcon

      default ItemStack createIcon()
      Returns an item rendered on the top left of the
      invalid @linkplain
      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
      invalid @linkplain
      output preview
      on the recipe toast when a new recipe is unlocked
      Mappings:
      Namespace Name Mixin selector
      official h Lchu;h()Lcer;
      intermediary method_17447 Lnet/minecraft/class_1860;method_17447()Lnet/minecraft/class_1799;
      named createIcon Lnet/minecraft/recipe/Recipe;createIcon()Lnet/minecraft/item/ItemStack;
    • method_48453

      boolean method_48453(ItemStack itemStack)
      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

      boolean method_48454(ItemStack itemStack)
      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

      boolean testAddition(ItemStack itemStack)
      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