Package net.minecraft.recipebook
Class ServerPlaceRecipe<C extends Container>
java.lang.Object
net.minecraft.recipebook.ServerPlaceRecipe<C>
- All Implemented Interfaces:
- PlaceRecipe<Integer>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Inventoryprivate static final org.slf4j.Loggerprotected RecipeBookMenu<C>protected final StackedContents
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddItemToSlot(Iterator<Integer> p_135444_, int p_135445_, int p_135446_, int p_135447_, int p_135448_) protected voidprivate intprotected intgetStackSize(boolean p_135450_, int p_135451_, boolean p_135452_) protected voidhandleRecipeClicked(RecipeHolder<? extends Recipe<C>> p_298652_, boolean p_135442_) protected voidmoveItemToGrid(Slot p_135439_, ItemStack p_135440_) voidrecipeClicked(ServerPlayer p_135435_, RecipeHolder<? extends Recipe<C>> p_298963_, boolean p_135437_) private booleanMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.recipebook.PlaceRecipeplaceRecipe
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
stackedContents
- 
inventory
 
- 
- 
Constructor Details- 
ServerPlaceRecipe
 
- 
- 
Method Details- 
recipeClickedpublic void recipeClicked(ServerPlayer p_135435_, @Nullable RecipeHolder<? extends Recipe<C>> p_298963_, boolean p_135437_) 
- 
clearGridprotected void clearGrid()
- 
handleRecipeClicked
- 
addItemToSlotpublic void addItemToSlot(Iterator<Integer> p_135444_, int p_135445_, int p_135446_, int p_135447_, int p_135448_) - Specified by:
- addItemToSlotin interface- PlaceRecipe<C extends Container>
 
- 
getStackSizeprotected int getStackSize(boolean p_135450_, int p_135451_, boolean p_135452_) 
- 
moveItemToGrid
- 
testClearGridprivate boolean testClearGrid()
- 
getAmountOfFreeSlotsInInventoryprivate int getAmountOfFreeSlotsInInventory()
 
-