Class ShapedRecipe

java.lang.Object
net.minecraft.recipe.ShapedRecipe
All Implemented Interfaces:
Recipe

public class ShapedRecipe extends Object implements Recipe
Mappings:
Namespace Name
intermediary net/minecraft/class_193
glue class_217
server ft
client is
named net/minecraft/recipe/ShapedRecipe
  • Field Details

    • width

      private int width
      Mappings:
      Namespace Name Mixin selector
      intermediary field_699 Lnet/minecraft/class_193;field_699:I
      glue field_907 Lclass_217;field_907:I
      server b Lft;b:I
      client b Lis;b:I
      named width Lnet/minecraft/recipe/ShapedRecipe;width:I
    • height

      private int height
      Mappings:
      Namespace Name Mixin selector
      intermediary field_700 Lnet/minecraft/class_193;field_700:I
      glue field_908 Lclass_217;field_908:I
      server c Lft;c:I
      client c Lis;c:I
      named height Lnet/minecraft/recipe/ShapedRecipe;height:I
    • ingredients

      private ItemInstance[] ingredients
      Mappings:
      Namespace Name Mixin selector
      intermediary field_701 Lnet/minecraft/class_193;field_701:[Lnet/minecraft/class_31;
      glue field_909 Lclass_217;field_909:[Lclass_224;
      server d Lft;d:[Lfy;
      client d Lis;d:[Liz;
      named ingredients Lnet/minecraft/recipe/ShapedRecipe;ingredients:[Lnet/minecraft/item/ItemInstance;
    • output

      private ItemInstance output
      Mappings:
      Namespace Name Mixin selector
      intermediary field_702 Lnet/minecraft/class_193;field_702:Lnet/minecraft/class_31;
      glue field_910 Lclass_217;field_910:Lclass_224;
      server e Lft;e:Lfy;
      client e Lis;e:Liz;
      named output Lnet/minecraft/recipe/ShapedRecipe;output:Lnet/minecraft/item/ItemInstance;
    • outputId

      public final int outputId
      Mappings:
      Namespace Name Mixin selector
      intermediary field_698 Lnet/minecraft/class_193;field_698:I
      glue field_906 Lclass_217;field_906:I
      server a Lft;a:I
      client a Lis;a:I
      named outputId Lnet/minecraft/recipe/ShapedRecipe;outputId:I
  • Constructor Details

    • ShapedRecipe

      public ShapedRecipe(int width, int height, ItemInstance[] ingredients, ItemInstance output)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_193;<init>(II[Lnet/minecraft/class_31;Lnet/minecraft/class_31;)V
      glue <init> Lclass_217;<init>(II[Lclass_224;Lclass_224;)V
      server <init> Lft;<init>(II[Lfy;Lfy;)V
      client <init> Lis;<init>(II[Liz;Liz;)V
      named <init> Lnet/minecraft/recipe/ShapedRecipe;<init>(II[Lnet/minecraft/item/ItemInstance;Lnet/minecraft/item/ItemInstance;)V
  • Method Details

    • getOutput

      public ItemInstance getOutput()
      Specified by:
      getOutput in interface Recipe
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2073 Lnet/minecraft/class_160;method_2073()Lnet/minecraft/class_31;
      glue method_286 Lclass_93;method_286()Lclass_224;
      server b Lck;b()Lfy;
      client b Ldt;b()Liz;
      named getOutput Lnet/minecraft/recipe/Recipe;getOutput()Lnet/minecraft/item/ItemInstance;
    • canCraft

      public boolean canCraft(Crafting crafting)
      Specified by:
      canCraft in interface Recipe
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2072 Lnet/minecraft/class_160;method_2072(Lnet/minecraft/class_159;)Z
      glue method_285 Lclass_93;method_285(Lclass_305;)Z
      server a Lck;a(Lhz;)Z
      client a Ldt;a(Lmq;)Z
      named canCraft Lnet/minecraft/recipe/Recipe;canCraft(Lnet/minecraft/inventory/Crafting;)Z
    • matches

      private boolean matches(Crafting crafting, int itemX, int itemY, boolean isSmall)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_652 Lnet/minecraft/class_193;method_652(Lnet/minecraft/class_159;IIZ)Z
      glue method_1021 Lclass_217;method_1021(Lclass_305;IIZ)Z
      server a Lft;a(Lhz;IIZ)Z
      client a Lis;a(Lmq;IIZ)Z
      named matches Lnet/minecraft/recipe/ShapedRecipe;matches(Lnet/minecraft/inventory/Crafting;IIZ)Z
    • craft

      public ItemInstance craft(Crafting crafting)
      Specified by:
      craft in interface Recipe
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2074 Lnet/minecraft/class_160;method_2074(Lnet/minecraft/class_159;)Lnet/minecraft/class_31;
      glue method_287 Lclass_93;method_287(Lclass_305;)Lclass_224;
      server b Lck;b(Lhz;)Lfy;
      client b Ldt;b(Lmq;)Liz;
      named craft Lnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Crafting;)Lnet/minecraft/item/ItemInstance;
    • getIngredientCount

      public int getIngredientCount()
      Specified by:
      getIngredientCount in interface Recipe
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2071 Lnet/minecraft/class_160;method_2071()I
      glue method_284 Lclass_93;method_284()I
      server a Lck;a()I
      client a Ldt;a()I
      named getIngredientCount Lnet/minecraft/recipe/Recipe;getIngredientCount()I