net.minecraft.world.item.crafting

public record ShapedRecipePattern

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

Constructor summary

ModifierConstructor
public (int f_302375_, int f_303265_, NonNullList<Ingredient> f_302791_, Optional<ShapedRecipePattern$Data> arg3)

Method summary

Modifier and TypeMethod
public static ShapedRecipePattern
a(Map<Character, cpz> 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, cpz> 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(cqk$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(cir arg0)
matches(CraftingContainer arg0)
method_55078(class_8566 arg0)
matches(RecipeInputInventory inventory)
m_304908_(C_1251_ arg0)
private boolean
a(cir 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)
public void
a(ui arg0)
toNetwork(FriendlyByteBuf arg0)
method_55087(class_2540 arg0)
writeToBuf(PacketByteBuf buf)
m_307574_(C_4983_ arg0)
public static ShapedRecipePattern
b(ui arg0)
fromNetwork(FriendlyByteBuf arg0)
method_55090(class_2540 arg0)
readFromBuf(PacketByteBuf buf)
m_306640_(C_4983_ p_310753_)
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_()