Package net.minecraft.recipebook
Class ServerPlaceRecipe<C extends Container>
java.lang.Object
net.minecraft.recipebook.ServerPlaceRecipe<C>
- All Implemented Interfaces:
PlaceRecipe<Integer>
-
Field Summary
Modifier and TypeFieldDescriptionprotected Inventory
protected static org.apache.logging.log4j.Logger
protected RecipeBookMenu<C>
protected StackedContents
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItemToSlot(Iterator<Integer> p_135444_, int p_135445_, int p_135446_, int p_135447_, int p_135448_)
protected void
clearGrid(boolean p_179845_)
private int
protected int
getStackSize(boolean p_135450_, int p_135451_, boolean p_135452_)
protected void
handleRecipeClicked(Recipe<C> p_135441_, boolean p_135442_)
protected void
moveItemToGrid(Slot p_135439_, ItemStack p_135440_)
void
recipeClicked(ServerPlayer p_135435_, Recipe<C> p_135436_, boolean p_135437_)
private boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.recipebook.PlaceRecipe
placeRecipe
-
Field Details
-
LOGGER
protected static final org.apache.logging.log4j.Logger LOGGER -
stackedContents
-
inventory
-
-
Constructor Details
-
ServerPlaceRecipe
-
-
Method Details
-
recipeClicked
public void recipeClicked(ServerPlayer p_135435_, @Nullable Recipe<C> p_135436_, boolean p_135437_) -
clearGrid
protected void clearGrid(boolean p_179845_) -
handleRecipeClicked
-
addItemToSlot
public void addItemToSlot(Iterator<Integer> p_135444_, int p_135445_, int p_135446_, int p_135447_, int p_135448_)- Specified by:
addItemToSlot
in interfacePlaceRecipe<C extends Container>
-
getStackSize
protected int getStackSize(boolean p_135450_, int p_135451_, boolean p_135452_) -
moveItemToGrid
-
testClearGrid
private boolean testClearGrid() -
getAmountOfFreeSlotsInInventory
private int getAmountOfFreeSlotsInInventory()
-