类 ServerPlaceRecipe<R extends Recipe<?>>
java.lang.Object
net.minecraft.recipebook.ServerPlaceRecipe<R>
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final int
private final int
private final Inventory
private static final int
private final ServerPlaceRecipe.CraftingMenuAccess
<R> private final boolean
-
构造器概要
构造器限定符构造器说明private
ServerPlaceRecipe
(ServerPlaceRecipe.CraftingMenuAccess<R> p_364245_, Inventory p_366205_, boolean p_362556_, int p_368821_, int p_369958_, List<Slot> p_364688_, List<Slot> p_367687_) -
方法概要
修饰符和类型方法说明private int
calculateAmountToCraft
(int p_362229_, boolean p_364254_) private static int
clampToMaxStackSize
(int p_376825_, List<Holder<Item>> p_377337_) private void
private int
private int
moveItemToGrid
(Slot p_135439_, Holder<Item> p_363932_, int p_342870_) static <I extends RecipeInput,
R extends Recipe<I>>
RecipeBookMenu.PostPlaceActionplaceRecipe
(ServerPlaceRecipe.CraftingMenuAccess<R> p_361168_, int p_364309_, int p_363223_, List<Slot> p_362609_, List<Slot> p_366501_, Inventory p_367037_, RecipeHolder<R> p_365886_, boolean p_366586_, boolean p_362700_) private void
placeRecipe
(RecipeHolder<R> p_369245_, StackedItemContents p_365814_) private boolean
private RecipeBookMenu.PostPlaceAction
tryPlaceRecipe
(RecipeHolder<R> p_365851_, StackedItemContents p_368441_)
-
字段详细资料
-
ITEM_NOT_FOUND
private static final int ITEM_NOT_FOUND- 另请参阅:
-
inventory
-
useMaxItems
private final boolean useMaxItems -
gridWidth
private final int gridWidth -
gridHeight
private final int gridHeight -
inputGridSlots
-
slotsToClear
-
-
构造器详细资料
-
ServerPlaceRecipe
-
-
方法详细资料
-
placeRecipe
public static <I extends RecipeInput,R extends Recipe<I>> RecipeBookMenu.PostPlaceAction placeRecipe(ServerPlaceRecipe.CraftingMenuAccess<R> p_361168_, int p_364309_, int p_363223_, List<Slot> p_362609_, List<Slot> p_366501_, Inventory p_367037_, RecipeHolder<R> p_365886_, boolean p_366586_, boolean p_362700_) -
tryPlaceRecipe
private RecipeBookMenu.PostPlaceAction tryPlaceRecipe(RecipeHolder<R> p_365851_, StackedItemContents p_368441_) -
clearGrid
private void clearGrid() -
placeRecipe
-
clampToMaxStackSize
-
calculateAmountToCraft
private int calculateAmountToCraft(int p_362229_, boolean p_364254_) -
moveItemToGrid
-
testClearGrid
private boolean testClearGrid() -
getAmountOfFreeSlotsInInventory
private int getAmountOfFreeSlotsInInventory()
-