Package net.minecraft.recipe
Class RawShapedRecipe
java.lang.Object
net.minecraft.recipe.RawShapedRecipe
- Mappings:
Namespace Name named net/minecraft/recipe/RawShapedRecipe
intermediary net/minecraft/class_8957
official czg
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<RawShapedRecipe> private final Optional
<RawShapedRecipe.Data> private final int
private final int
private final DefaultedList
<Ingredient> private static final int
static final PacketCodec
<RegistryByteBuf, RawShapedRecipe> private final boolean
private final int
-
Constructor Summary
ConstructorDescriptionRawShapedRecipe
(int width, int height, DefaultedList<Ingredient> ingredients, Optional<RawShapedRecipe.Data> data) -
Method Summary
Modifier and TypeMethodDescriptionstatic RawShapedRecipe
create
(Map<Character, Ingredient> key, String[] pattern) static RawShapedRecipe
private static int
findFirstSymbol
(String line) private static int
findLastSymbol
(String line) private static com.mojang.serialization.DataResult
<RawShapedRecipe> fromData
(RawShapedRecipe.Data data) int
int
getWidth()
boolean
matches
(CraftingRecipeInput input) private boolean
matches
(CraftingRecipeInput input, boolean mirrored) private static RawShapedRecipe
(package private) static String[]
removePadding
(List<String> pattern) Removes empty space from around the recipe pattern.private void
-
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
Lczg;c:I
-
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
Lczg;a:Lcom/mojang/serialization/MapCodec;
-
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
Lczg;b:Lyw;
-
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
Lczg;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
Lczg;e:I
-
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
Lczg;f:Ljv;
-
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
Lczg;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
Lczg;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
Lczg;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>
Lczg;<init>(IILjv;Ljava/util/Optional;)V
-
-
Method Details
-
create
- 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
Lczg;a(Ljava/util/Map;[Ljava/lang/String;)Lczg;
-
create
- 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
Lczg;a(Ljava/util/Map;Ljava/util/List;)Lczg;
-
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
Lczg;a(Lczg$a;)Lcom/mojang/serialization/DataResult;
-
removePadding
Removes empty space from around the recipe pattern.Turns patterns such as:
" o" " a" " "
"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
Lczg;a(Ljava/util/List;)[Ljava/lang/String;
-
findFirstSymbol
- 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
Lczg;a(Ljava/lang/String;)I
-
findLastSymbol
- 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
Lczg;b(Ljava/lang/String;)I
-
matches
- 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
Lczg;a(Lcyn;)Z
-
matches
- 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
Lczg;a(Lcyn;Z)Z
-
writeToBuf
- 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
Lczg;a(Lwj;)V
-
readFromBuf
- 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
Lczg;b(Lwj;)Lczg;
-
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
Lczg;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
Lczg;b()I
-
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
Lczg;c()Ljv;
-