net.minecraft.world.item.crafting

public final class ShapedRecipePattern

dct
net.minecraft.world.item.crafting.ShapedRecipePattern
net.minecraft.class_8957
net.minecraft.recipe.RawShapedRecipe
net.minecraft.world.item.crafting.ShapedRecipePattern

Field summary

Modifier and TypeField
private static final int
d
MAX_SIZE
field_47322
MAX_WIDTH_AND_HEIGHT
public static final char
a
EMPTY_SLOT
field_52602
SPACE
public static final com.mojang.serialization.MapCodec<ShapedRecipePattern>
b
MAP_CODEC
field_47321
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ShapedRecipePattern>
c
STREAM_CODEC
field_48359
PACKET_CODEC
private final int
e
width
field_51637
width
private final int
f
height
field_51638
height
private final List<Optional<Ingredient>>
g
ingredients
field_51639
ingredients
private final Optional<ShapedRecipePattern$Data>
h
data
field_51640
data
private final int
i
ingredientCount
field_51641
ingredientCount
private final boolean
j
symmetrical
field_51642
symmetrical

Constructor summary

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

Method summary

Modifier and TypeMethod
private static ShapedRecipePattern
a(Integer arg0, Integer arg1, List<Optional<dca>> arg2)
createFromNetwork(Integer arg0, Integer arg1, List<Optional<Ingredient>> arg2)
method_61695(Integer arg0, Integer arg1, List<Optional<class_1856>> arg2)
create(Integer width, Integer height, List<Optional<Ingredient>> ingredients)
public static ShapedRecipePattern
a(Map<Character, dca> 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)
public static ShapedRecipePattern
a(Map<Character, dca> 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)
private static com.mojang.serialization.DataResult<ShapedRecipePattern>
a(dct$a arg0)
unpack(ShapedRecipePattern$Data arg0)
method_55080(class_8957$class_8958 arg0)
fromData(RawShapedRecipe$Data data)
static String[]
a(List<String> arg0)
shrink(List<String> arg0)
method_55084(List<String> arg0)
removePadding(List<String> pattern)
private static int
a(String arg0)
firstNonEmpty(String arg0)
method_55083(String arg0)
findFirstSymbol(String line)
private static int
b(String arg0)
lastNonEmpty(String arg0)
method_55089(String arg0)
findLastSymbol(String line)
public boolean
a(dbs arg0)
matches(CraftingInput arg0)
method_55078(class_9694 arg0)
matches(CraftingRecipeInput input)
private boolean
a(dbs arg0, boolean arg1)
matches(CraftingInput arg0, boolean arg1)
method_55079(class_9694 arg0, boolean arg1)
matches(CraftingRecipeInput input, boolean mirrored)
public int
a()
width()
method_59995()
getWidth()
public int
b()
height()
method_59996()
getHeight()
public List<Optional<Ingredient>>
c()
ingredients()
method_59997()
getIngredients()