类 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 int
(专用程序包) static int
static final StreamCodec
<RegistryFriendlyByteBuf, ShapedRecipePattern> private final boolean
private final int
-
构造器概要
构造器构造器说明ShapedRecipePattern
(int p_311959_, int p_312714_, List<Optional<Ingredient>> p_360908_, Optional<ShapedRecipePattern.Data> p_312427_) -
方法概要
修饰符和类型方法说明private static ShapedRecipePattern
createFromNetwork
(Integer p_363312_, Integer p_363884_, List<Optional<Ingredient>> p_364060_) private static int
firstNonEmpty
(String p_312343_) static int
static int
int
height()
private static int
lastNonEmpty
(String p_311944_) boolean
matches
(CraftingInput p_345063_) private boolean
matches
(CraftingInput p_345835_, boolean p_344990_) static ShapedRecipePattern
of
(Map<Character, Ingredient> p_312851_, String... p_312645_) static ShapedRecipePattern
static void
setCraftingSize
(int width, int height) Expand the max width and height allowed in the deserializer.(专用程序包) static String[]
private static com.mojang.serialization.DataResult
<ShapedRecipePattern> unpack
(ShapedRecipePattern.Data p_312037_) int
width()
-
字段详细资料
-
MAX_SIZE
已过时。Neo: usegetMaxWidth()
andgetMaxHeight()
- 另请参阅:
-
EMPTY_SLOT
public static final char EMPTY_SLOT- 另请参阅:
-
maxWidth
static int maxWidth -
maxHeight
static int maxHeight -
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_311959_, int p_312714_, List<Optional<Ingredient>> p_360908_, Optional<ShapedRecipePattern.Data> p_312427_)
-
-
方法详细资料
-
getMaxWidth
public static int getMaxWidth() -
getMaxHeight
public static int getMaxHeight() -
setCraftingSize
public static void setCraftingSize(int width, int height) Expand the max width and height allowed in the deserializer. This should be called by modders who add custom crafting tables that are larger than the vanilla 3x3.- 参数:
width
- your max recipe widthheight
- your max recipe height
-
createFromNetwork
private static ShapedRecipePattern createFromNetwork(Integer p_363312_, Integer p_363884_, List<Optional<Ingredient>> p_364060_) -
of
-
of
-
unpack
private static com.mojang.serialization.DataResult<ShapedRecipePattern> unpack(ShapedRecipePattern.Data p_312037_) -
shrink
-
firstNonEmpty
-
lastNonEmpty
-
matches
-
matches
-
width
public int width() -
height
public int height() -
ingredients
-
getMaxWidth()
andgetMaxHeight()