类 ServerPlaceRecipe<C extends Container>
java.lang.Object
net.minecraft.recipebook.ServerPlaceRecipe<C>
- 所有已实现的接口:
PlaceRecipe<Integer>
-
字段概要
字段修饰符和类型字段说明protected Inventory
private static final org.slf4j.Logger
protected RecipeBookMenu<C>
protected final StackedContents
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addItemToSlot
(Iterator<Integer> pIngredients, int pSlot, int pMaxAmount, int pY, int pX) protected void
private int
protected int
getStackSize
(boolean pPlaceAll, int pMaxPossible, boolean pRecipeMatches) protected void
handleRecipeClicked
(Recipe<C> pRecipe, boolean pPlaceAll) protected void
moveItemToGrid
(Slot pSlotToFill, ItemStack pIngredient) void
recipeClicked
(ServerPlayer pPlayer, Recipe<C> pRecipe, boolean pPlaceAll) private boolean
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.recipebook.PlaceRecipe
placeRecipe
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
stackedContents
-
inventory
-
-
构造器详细资料
-
ServerPlaceRecipe
-
-
方法详细资料
-
recipeClicked
-
clearGrid
protected void clearGrid() -
handleRecipeClicked
-
addItemToSlot
public void addItemToSlot(Iterator<Integer> pIngredients, int pSlot, int pMaxAmount, int pY, int pX) - 指定者:
addItemToSlot
在接口中PlaceRecipe<C extends Container>
-
getStackSize
protected int getStackSize(boolean pPlaceAll, int pMaxPossible, boolean pRecipeMatches) -
moveItemToGrid
-
testClearGrid
private boolean testClearGrid() -
getAmountOfFreeSlotsInInventory
private int getAmountOfFreeSlotsInInventory()
-