Class RawShapedRecipe

java.lang.Object
net.minecraft.recipe.RawShapedRecipe

public final class RawShapedRecipe extends Object
Mappings:
Namespace Name
named net/minecraft/recipe/RawShapedRecipe
intermediary net/minecraft/class_8957
official cys
  • Field Details

    • MAX_WIDTH_AND_HEIGHT

      private static final int MAX_WIDTH_AND_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_WIDTH_AND_HEIGHT Lnet/minecraft/recipe/RawShapedRecipe;MAX_WIDTH_AND_HEIGHT:I
      intermediary field_47322 Lnet/minecraft/class_8957;field_47322:I
      official c Lcys;c:I
    • CODEC

      public static final com.mojang.serialization.MapCodec<RawShapedRecipe> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/recipe/RawShapedRecipe;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_47321 Lnet/minecraft/class_8957;field_47321:Lcom/mojang/serialization/MapCodec;
      official a Lcys;a:Lcom/mojang/serialization/MapCodec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,RawShapedRecipe> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/recipe/RawShapedRecipe;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48359 Lnet/minecraft/class_8957;field_48359:Lnet/minecraft/class_9139;
      official b Lcys;b:Lys;
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/recipe/RawShapedRecipe;width:I
      intermediary field_51637 Lnet/minecraft/class_8957;field_51637:I
      official d Lcys;d:I
    • height

      private final int height
      Mappings:
      Namespace Name Mixin selector
      named height Lnet/minecraft/recipe/RawShapedRecipe;height:I
      intermediary field_51638 Lnet/minecraft/class_8957;field_51638:I
      official e Lcys;e:I
    • ingredients

      private final DefaultedList<Ingredient> ingredients
      Mappings:
      Namespace Name Mixin selector
      named ingredients Lnet/minecraft/recipe/RawShapedRecipe;ingredients:Lnet/minecraft/util/collection/DefaultedList;
      intermediary field_51639 Lnet/minecraft/class_8957;field_51639:Lnet/minecraft/class_2371;
      official f Lcys;f:Ljs;
    • data

      private final Optional<RawShapedRecipe.Data> data
      Mappings:
      Namespace Name Mixin selector
      named data Lnet/minecraft/recipe/RawShapedRecipe;data:Ljava/util/Optional;
      intermediary field_51640 Lnet/minecraft/class_8957;field_51640:Ljava/util/Optional;
      official g Lcys;g:Ljava/util/Optional;
    • ingredientCount

      private final int ingredientCount
      Mappings:
      Namespace Name Mixin selector
      named ingredientCount Lnet/minecraft/recipe/RawShapedRecipe;ingredientCount:I
      intermediary field_51641 Lnet/minecraft/class_8957;field_51641:I
      official h Lcys;h:I
    • symmetrical

      private final boolean symmetrical
      Mappings:
      Namespace Name Mixin selector
      named symmetrical Lnet/minecraft/recipe/RawShapedRecipe;symmetrical:Z
      intermediary field_51642 Lnet/minecraft/class_8957;field_51642:Z
      official i Lcys;i:Z
  • Constructor Details

    • RawShapedRecipe

      public RawShapedRecipe(int width, int height, DefaultedList<Ingredient> ingredients, Optional<RawShapedRecipe.Data> data)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/recipe/RawShapedRecipe;<init>(IILnet/minecraft/util/collection/DefaultedList;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_8957;<init>(IILnet/minecraft/class_2371;Ljava/util/Optional;)V
      official <init> Lcys;<init>(IILjs;Ljava/util/Optional;)V
  • Method Details

    • create

      public static RawShapedRecipe create(Map<Character,Ingredient> key, String[] pattern)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/recipe/RawShapedRecipe;create(Ljava/util/Map;[Ljava/lang/String;)Lnet/minecraft/recipe/RawShapedRecipe;
      intermediary method_55086 Lnet/minecraft/class_8957;method_55086(Ljava/util/Map;[Ljava/lang/String;)Lnet/minecraft/class_8957;
      official a Lcys;a(Ljava/util/Map;[Ljava/lang/String;)Lcys;
    • create

      public static RawShapedRecipe create(Map<Character,Ingredient> key, List<String> pattern)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/recipe/RawShapedRecipe;create(Ljava/util/Map;Ljava/util/List;)Lnet/minecraft/recipe/RawShapedRecipe;
      intermediary method_55085 Lnet/minecraft/class_8957;method_55085(Ljava/util/Map;Ljava/util/List;)Lnet/minecraft/class_8957;
      official a Lcys;a(Ljava/util/Map;Ljava/util/List;)Lcys;
    • fromData

      private static com.mojang.serialization.DataResult<RawShapedRecipe> fromData(RawShapedRecipe.Data data)
      Mappings:
      Namespace Name Mixin selector
      named fromData Lnet/minecraft/recipe/RawShapedRecipe;fromData(Lnet/minecraft/recipe/RawShapedRecipe$Data;)Lcom/mojang/serialization/DataResult;
      intermediary method_55080 Lnet/minecraft/class_8957;method_55080(Lnet/minecraft/class_8957$class_8958;)Lcom/mojang/serialization/DataResult;
      official a Lcys;a(Lcys$a;)Lcom/mojang/serialization/DataResult;
    • removePadding

      static String[] removePadding(List<String> pattern)
      Removes empty space from around the recipe pattern.

      Turns patterns such as:

       
       "   o"
       "   a"
       "    "
       
       
      Into:
       
       "o"
       "a"
       
       
      Returns:
      a new recipe pattern with all leading and trailing empty rows/columns removed
      Mappings:
      Namespace Name Mixin selector
      named removePadding Lnet/minecraft/recipe/RawShapedRecipe;removePadding(Ljava/util/List;)[Ljava/lang/String;
      intermediary method_55084 Lnet/minecraft/class_8957;method_55084(Ljava/util/List;)[Ljava/lang/String;
      official a Lcys;a(Ljava/util/List;)[Ljava/lang/String;
    • findFirstSymbol

      private static int findFirstSymbol(String line)
      Mappings:
      Namespace Name Mixin selector
      named findFirstSymbol Lnet/minecraft/recipe/RawShapedRecipe;findFirstSymbol(Ljava/lang/String;)I
      intermediary method_55083 Lnet/minecraft/class_8957;method_55083(Ljava/lang/String;)I
      official a Lcys;a(Ljava/lang/String;)I
    • findLastSymbol

      private static int findLastSymbol(String line)
      Mappings:
      Namespace Name Mixin selector
      named findLastSymbol Lnet/minecraft/recipe/RawShapedRecipe;findLastSymbol(Ljava/lang/String;)I
      intermediary method_55089 Lnet/minecraft/class_8957;method_55089(Ljava/lang/String;)I
      official b Lcys;b(Ljava/lang/String;)I
    • matches

      public boolean matches(CraftingRecipeInput input)
      Mappings:
      Namespace Name Mixin selector
      named matches Lnet/minecraft/recipe/RawShapedRecipe;matches(Lnet/minecraft/recipe/input/CraftingRecipeInput;)Z
      intermediary method_55078 Lnet/minecraft/class_8957;method_55078(Lnet/minecraft/class_9694;)Z
      official a Lcys;a(Lcxz;)Z
    • matches

      private boolean matches(CraftingRecipeInput input, boolean mirrored)
      Mappings:
      Namespace Name Mixin selector
      named matches Lnet/minecraft/recipe/RawShapedRecipe;matches(Lnet/minecraft/recipe/input/CraftingRecipeInput;Z)Z
      intermediary method_55079 Lnet/minecraft/class_8957;method_55079(Lnet/minecraft/class_9694;Z)Z
      official a Lcys;a(Lcxz;Z)Z
    • writeToBuf

      private void writeToBuf(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named writeToBuf Lnet/minecraft/recipe/RawShapedRecipe;writeToBuf(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary method_55087 Lnet/minecraft/class_8957;method_55087(Lnet/minecraft/class_9129;)V
      official a Lcys;a(Lwf;)V
    • readFromBuf

      private static RawShapedRecipe readFromBuf(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named readFromBuf Lnet/minecraft/recipe/RawShapedRecipe;readFromBuf(Lnet/minecraft/network/RegistryByteBuf;)Lnet/minecraft/recipe/RawShapedRecipe;
      intermediary method_55090 Lnet/minecraft/class_8957;method_55090(Lnet/minecraft/class_9129;)Lnet/minecraft/class_8957;
      official b Lcys;b(Lwf;)Lcys;
    • getWidth

      public int getWidth()
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lnet/minecraft/recipe/RawShapedRecipe;getWidth()I
      intermediary method_59995 Lnet/minecraft/class_8957;method_59995()I
      official a Lcys;a()I
    • getHeight

      public int getHeight()
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/recipe/RawShapedRecipe;getHeight()I
      intermediary method_59996 Lnet/minecraft/class_8957;method_59996()I
      official b Lcys;b()I
    • getIngredients

      public DefaultedList<Ingredient> getIngredients()
      Mappings:
      Namespace Name Mixin selector
      named getIngredients Lnet/minecraft/recipe/RawShapedRecipe;getIngredients()Lnet/minecraft/util/collection/DefaultedList;
      intermediary method_59997 Lnet/minecraft/class_8957;method_59997()Lnet/minecraft/class_2371;
      official c Lcys;c()Ljs;