net.minecraft.world.item.crafting

public final class ShapedRecipePattern

czi
net.minecraft.world.item.crafting.ShapedRecipePattern
net.minecraft.class_8957
net.minecraft.recipe.RawShapedRecipe
net.minecraft.src.C_302031_
net.minecraft.world.item.crafting.ShapedRecipePattern

Field summary

Modifier and TypeField
private static final int
c
MAX_SIZE
field_47322
MAX_WIDTH_AND_HEIGHT
f_302599_
public static final com.mojang.serialization.MapCodec<ShapedRecipePattern>
a
MAP_CODEC
field_47321
CODEC
f_302908_
public static final StreamCodec<RegistryFriendlyByteBuf, ShapedRecipePattern>
b
STREAM_CODEC
field_48359
PACKET_CODEC
f_315058_
private final int
d
width
field_51637
width
f_303446_
private final int
e
height
field_51638
height
f_302375_
private final NonNullList<Ingredient>
f
ingredients
field_51639
ingredients
f_303265_
private final Optional<ShapedRecipePattern$Data>
g
data
field_51640
data
f_302791_
private final int
h
ingredientCount
field_51641
ingredientCount
f_337661_
private final boolean
i
symmetrical
field_51642
symmetrical
f_337728_

Constructor summary

ModifierConstructor
public (int width, int height, NonNullList<Ingredient> ingredients, Optional<ShapedRecipePattern$Data> data)

Method summary

Modifier and TypeMethod
public static ShapedRecipePattern
a(Map<Character, cyw> arg0, String... arg1)
of(Map<Character, Ingredient> arg0, String... arg1)
method_55086(Map<Character, class_1856> arg0, String... arg1)
create(Map<Character, Ingredient> key, String... pattern)
m_304825_(Map<Character, C_1462_> p_310983_, String... p_310430_)
public static ShapedRecipePattern
a(Map<Character, cyw> arg0, List<String> arg1)
of(Map<Character, Ingredient> arg0, List<String> arg1)
method_55085(Map<Character, class_1856> arg0, List<String> arg1)
create(Map<Character, Ingredient> key, List<String> pattern)
m_306906_(Map<Character, C_1462_> p_313226_, List<String> p_310089_)
private static com.mojang.serialization.DataResult<ShapedRecipePattern>
a(czi$a arg0)
unpack(ShapedRecipePattern$Data arg0)
method_55080(class_8957$class_8958 arg0)
fromData(RawShapedRecipe$Data data)
m_305688_(C_302031_$C_301990_ p_312333_)
static String[]
a(List<String> arg0)
shrink(List<String> arg0)
method_55084(List<String> arg0)
removePadding(List<String> pattern)
m_306947_(List<String> p_311492_)
private static int
a(String arg0)
firstNonSpace(String arg0)
method_55083(String arg0)
findFirstSymbol(String line)
m_304979_(String p_309836_)
private static int
b(String arg0)
lastNonSpace(String arg0)
method_55089(String arg0)
findLastSymbol(String line)
m_306007_(String p_312853_)
public boolean
a(cyp arg0)
matches(CraftingInput arg0)
method_55078(class_9694 arg0)
matches(CraftingRecipeInput input)
m_306368_(C_336435_ arg0)
private boolean
a(cyp arg0, boolean arg1)
matches(CraftingInput arg0, boolean arg1)
method_55079(class_9694 arg0, boolean arg1)
matches(CraftingRecipeInput input, boolean mirrored)
m_304908_(C_336435_ p_342488_, boolean arg1)
private void
a(wk arg0)
toNetwork(RegistryFriendlyByteBuf arg0)
method_55087(class_9129 arg0)
writeToBuf(RegistryByteBuf buf)
m_307574_(C_313350_ arg0)
private static ShapedRecipePattern
b(wk arg0)
fromNetwork(RegistryFriendlyByteBuf arg0)
method_55090(class_9129 arg0)
readFromBuf(RegistryByteBuf buf)
m_306640_(C_313350_ p_332293_)
public int
a()
width()
method_59995()
getWidth()
m_305604_()
public int
b()
height()
method_59996()
getHeight()
m_307090_()
public NonNullList<Ingredient>
c()
ingredients()
method_59997()
getIngredients()
m_304810_()