类 ShapedRecipePattern
java.lang.Object
net.minecraft.world.item.crafting.ShapedRecipePattern
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final Optional
<ShapedRecipePattern.Data> static final char
private final int
private final int
private final List
<Optional<Ingredient>> static final com.mojang.serialization.MapCodec
<ShapedRecipePattern> private static final int
static final StreamCodec
<RegistryFriendlyByteBuf, ShapedRecipePattern> private final boolean
private final int
-
构造器概要
构造器构造器说明ShapedRecipePattern
(int p_309692_, int p_311724_, List<Optional<Ingredient>> p_361049_, Optional<ShapedRecipePattern.Data> p_310645_) -
方法概要
修饰符和类型方法说明private static ShapedRecipePattern
createFromNetwork
(Integer p_365396_, Integer p_361921_, List<Optional<Ingredient>> p_363051_) data()
private static int
firstNonEmpty
(String p_309836_) int
height()
private static int
lastNonEmpty
(String p_312853_) boolean
matches
(CraftingInput p_343130_) private boolean
matches
(CraftingInput p_345096_, boolean p_342488_) static ShapedRecipePattern
of
(Map<Character, Ingredient> p_310983_, String... p_310430_) static ShapedRecipePattern
(专用程序包) static String[]
private static com.mojang.serialization.DataResult
<ShapedRecipePattern> unpack
(ShapedRecipePattern.Data p_312333_) int
width()
-
字段详细资料
-
MAX_SIZE
private static final int MAX_SIZE- 另请参阅:
-
EMPTY_SLOT
public static final char EMPTY_SLOT- 另请参阅:
-
MAP_CODEC
-
STREAM_CODEC
-
width
private final int width -
height
private final int height -
ingredients
-
data
-
ingredientCount
private final int ingredientCount -
symmetrical
private final boolean symmetrical
-
-
构造器详细资料
-
ShapedRecipePattern
public ShapedRecipePattern(int p_309692_, int p_311724_, List<Optional<Ingredient>> p_361049_, Optional<ShapedRecipePattern.Data> p_310645_)
-
-
方法详细资料
-
createFromNetwork
private static ShapedRecipePattern createFromNetwork(Integer p_365396_, Integer p_361921_, List<Optional<Ingredient>> p_363051_) -
of
-
of
-
unpack
private static com.mojang.serialization.DataResult<ShapedRecipePattern> unpack(ShapedRecipePattern.Data p_312333_) -
shrink
-
firstNonEmpty
-
lastNonEmpty
-
matches
-
matches
-
width
public int width() -
height
public int height() -
ingredients
-
data
-