net.minecraft.world.item.crafting

public record ShapedRecipePattern

czf
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 final int
c
width
comp_2081
width
f_303446_
private final int
d
height
comp_2082
height
f_302375_
private final NonNullList<Ingredient>
e
ingredients
comp_2083
ingredients
f_303265_
private final Optional<ShapedRecipePattern$Data>
f
data
comp_2084
data
f_302791_
private static final int
g
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_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static ShapedRecipePattern
a(Map<Character, cyu> 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, cyu> 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(czf$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(cqm arg0)
matches(CraftingContainer arg0)
method_55078(class_8566 arg0)
matches(RecipeInputInventory inventory)
m_304908_(C_1251_ arg0)
private boolean
a(cqm arg0, int arg1, int arg2, boolean arg3)
matches(CraftingContainer arg0, int arg1, int arg2, boolean arg3)
method_55079(class_8566 arg0, int arg1, int arg2, boolean arg3)
matches(RecipeInputInventory inventory, int offsetX, int offsetY, boolean flipped)
m_306368_(C_1251_ p_311269_, int p_310676_, int p_313153_, boolean arg3)
private void
a(xa arg0)
toNetwork(RegistryFriendlyByteBuf arg0)
method_55087(class_9129 arg0)
writeToBuf(RegistryByteBuf buf)
m_307574_(C_313350_ arg0)
private static ShapedRecipePattern
b(xa arg0)
fromNetwork(RegistryFriendlyByteBuf arg0)
method_55090(class_9129 arg0)
readFromBuf(RegistryByteBuf buf)
m_306640_(C_313350_ p_332293_)
public int
a()
width()
comp_2081()
width()
f_303446_()
public int
b()
height()
comp_2082()
height()
f_302375_()
public NonNullList<Ingredient>
c()
ingredients()
comp_2083()
ingredients()
f_303265_()
public Optional<ShapedRecipePattern$Data>
d()
data()
comp_2084()
data()
f_302791_()