类 ShapedRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapedRecipe
- 所有已实现的接口:
CraftingRecipe
,Recipe<CraftingInput>
- 直接已知子类:
MapExtendingRecipe
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明(专用程序包) final CraftingBookCategory
(专用程序包) final String
final ShapedRecipePattern
private PlacementInfo
(专用程序包) final ItemStack
(专用程序包) final boolean
从接口继承的字段 net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC, STREAM_CODEC
-
构造器概要
构造器构造器说明ShapedRecipe
(String p_250221_, CraftingBookCategory p_250716_, ShapedRecipePattern p_312814_, ItemStack p_248581_) ShapedRecipe
(String p_272759_, CraftingBookCategory p_273506_, ShapedRecipePattern p_312827_, ItemStack p_272852_, boolean p_312010_) -
方法概要
修饰符和类型方法说明assemble
(CraftingInput p_345201_, HolderLookup.Provider p_335688_) category()
display()
int
RecipeSerializer
<? extends ShapedRecipe> int
getWidth()
group()
boolean
matches
(CraftingInput p_345040_, Level p_44167_) boolean
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.item.crafting.CraftingRecipe
getRemainingItems, getType, recipeBookCategory
-
字段详细资料
-
pattern
-
result
-
group
-
category
-
showNotification
final boolean showNotification -
placementInfo
-
-
构造器详细资料
-
ShapedRecipe
public ShapedRecipe(String p_272759_, CraftingBookCategory p_273506_, ShapedRecipePattern p_312827_, ItemStack p_272852_, boolean p_312010_) -
ShapedRecipe
public ShapedRecipe(String p_250221_, CraftingBookCategory p_250716_, ShapedRecipePattern p_312814_, ItemStack p_248581_)
-
-
方法详细资料
-
getSerializer
- 指定者:
getSerializer
在接口中CraftingRecipe
- 指定者:
getSerializer
在接口中Recipe<CraftingInput>
-
group
- 指定者:
group
在接口中Recipe<CraftingInput>
-
category
- 指定者:
category
在接口中CraftingRecipe
-
getIngredients
-
placementInfo
- 指定者:
placementInfo
在接口中Recipe<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>
-