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 dcs
  • 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 d Ldcs;d:I
    • SPACE

      public static final char SPACE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SPACE Lnet/minecraft/recipe/RawShapedRecipe;SPACE:C
      intermediary field_52602 Lnet/minecraft/class_8957;field_52602:C
      official a Ldcs;a:C
    • 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 b Ldcs;b: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 c Ldcs;c:Lzt;
    • 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 e Ldcs;e: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 f Ldcs;f:I
    • ingredients

      private final List<Optional<Ingredient>> ingredients
      Mappings:
      Namespace Name Mixin selector
      named ingredients Lnet/minecraft/recipe/RawShapedRecipe;ingredients:Ljava/util/List;
      intermediary field_51639 Lnet/minecraft/class_8957;field_51639:Ljava/util/List;
      official g Ldcs;g:Ljava/util/List;
    • 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 h Ldcs;h: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 i Ldcs;i: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 j Ldcs;j:Z
  • Constructor Details

    • RawShapedRecipe

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

    • create

      private static RawShapedRecipe create(Integer width, Integer height, List<Optional<Ingredient>> ingredients)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/recipe/RawShapedRecipe;create(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/List;)Lnet/minecraft/recipe/RawShapedRecipe;
      intermediary method_61695 Lnet/minecraft/class_8957;method_61695(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/List;)Lnet/minecraft/class_8957;
      official a Ldcs;a(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/List;)Ldcs;
    • 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 Ldcs;a(Ljava/util/Map;[Ljava/lang/String;)Ldcs;
    • 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 Ldcs;a(Ljava/util/Map;Ljava/util/List;)Ldcs;
    • 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 Ldcs;a(Ldcs$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 Ldcs;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 Ldcs;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 Ldcs;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 Ldcs;a(Ldbr;)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 Ldcs;a(Ldbr;Z)Z
    • 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 Ldcs;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 Ldcs;b()I
    • getIngredients

      public List<Optional<Ingredient>> getIngredients()
      Mappings:
      Namespace Name Mixin selector
      named getIngredients Lnet/minecraft/recipe/RawShapedRecipe;getIngredients()Ljava/util/List;
      intermediary method_59997 Lnet/minecraft/class_8957;method_59997()Ljava/util/List;
      official c Ldcs;c()Ljava/util/List;