类 ShapedRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapedRecipe
- 所有已实现的接口:
CraftingRecipe
,Recipe<CraftingInput>
,IShapedRecipe<CraftingInput>
- 直接已知子类:
MapExtendingRecipe
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明(专用程序包) final CraftingBookCategory
(专用程序包) final String
(专用程序包) static int
(专用程序包) static int
(专用程序包) final ShapedRecipePattern
private PlacementInfo
(专用程序包) final ItemStack
(专用程序包) final boolean
从接口继承的字段 net.minecraft.world.item.crafting.Recipe
CODEC, STREAM_CODEC
-
构造器概要
构造器构造器说明ShapedRecipe
(String p_272759_, CraftingBookCategory p_273506_, ShapedRecipePattern p_310709_, ItemStack p_272852_) ShapedRecipe
(String p_250221_, CraftingBookCategory p_250716_, ShapedRecipePattern p_312200_, ItemStack p_248581_, boolean p_310619_) -
方法概要
修饰符和类型方法说明assemble
(CraftingInput p_345083_, HolderLookup.Provider p_333236_) category()
display()
int
int
int
RecipeSerializer
<? extends ShapedRecipe> int
getWidth()
group()
boolean
matches
(CraftingInput p_345171_, Level p_44177_) static void
setCraftingSize
(int width, int height) Expand the max width and height allowed in the deserializer.boolean
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.item.crafting.CraftingRecipe
getRemainingItems, getType, recipeBookCategory
-
字段详细资料
-
MAX_WIDTH
static int MAX_WIDTH -
MAX_HEIGHT
static int MAX_HEIGHT -
pattern
-
result
-
group
-
category
-
showNotification
final boolean showNotification -
placementInfo
-
-
构造器详细资料
-
ShapedRecipe
public ShapedRecipe(String p_250221_, CraftingBookCategory p_250716_, ShapedRecipePattern p_312200_, ItemStack p_248581_, boolean p_310619_) -
ShapedRecipe
public ShapedRecipe(String p_272759_, CraftingBookCategory p_273506_, ShapedRecipePattern p_310709_, ItemStack p_272852_)
-
-
方法详细资料
-
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
-
getSerializer
- 指定者:
getSerializer
在接口中CraftingRecipe
- 指定者:
getSerializer
在接口中Recipe<CraftingInput>
-
group
- 指定者:
group
在接口中Recipe<CraftingInput>
-
category
- 指定者:
category
在接口中CraftingRecipe
-
getIngredients
-
placementInfo
- 指定者:
placementInfo
在接口中Recipe<CraftingInput>
-
getRecipeWidth
public int getRecipeWidth()- 指定者:
getRecipeWidth
在接口中IShapedRecipe<CraftingInput>
-
getRecipeHeight
public int getRecipeHeight()- 指定者:
getRecipeHeight
在接口中IShapedRecipe<CraftingInput>
-
showNotification
public boolean showNotification()- 指定者:
showNotification
在接口中Recipe<CraftingInput>
-
matches
- 指定者:
matches
在接口中Recipe<CraftingInput>
-
assemble
- 指定者:
assemble
在接口中Recipe<CraftingInput>
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
display
- 指定者:
display
在接口中Recipe<CraftingInput>
-