Package net.minecraft.recipebook
Class ServerPlaceRecipe<I extends RecipeInput,R extends Recipe<I>>
java.lang.Object
net.minecraft.recipebook.ServerPlaceRecipe<I,R>
- All Implemented Interfaces:
PlaceRecipe<Integer>
public class ServerPlaceRecipe<I extends RecipeInput,R extends Recipe<I>>
extends Object
implements PlaceRecipe<Integer>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Inventoryprivate static final intprotected RecipeBookMenu<I, R> protected final StackedContents -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemToSlot(Integer p_346390_, int p_346229_, int p_345733_, int p_345812_, int p_346351_) protected voidprivate intprotected intgetStackSize(boolean p_135450_, int p_135451_, boolean p_135452_) protected voidhandleRecipeClicked(RecipeHolder<R> p_301187_, boolean p_135442_) protected intmoveItemToGrid(Slot p_135439_, ItemStack p_135440_, int p_346157_) voidrecipeClicked(ServerPlayer p_135435_, RecipeHolder<R> p_301150_, boolean p_135437_) private booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.recipebook.PlaceRecipe
placeRecipe
-
Field Details
-
ITEM_NOT_FOUND
private static final int ITEM_NOT_FOUND- See Also:
-
stackedContents
-
inventory
-
-
Constructor Details
-
ServerPlaceRecipe
-
-
Method Details
-
recipeClicked
public void recipeClicked(ServerPlayer p_135435_, @Nullable RecipeHolder<R> p_301150_, boolean p_135437_) -
clearGrid
protected void clearGrid() -
handleRecipeClicked
-
addItemToSlot
public void addItemToSlot(Integer p_346390_, int p_346229_, int p_345733_, int p_345812_, int p_346351_) - Specified by:
addItemToSlotin interfacePlaceRecipe<I extends RecipeInput>
-
getStackSize
protected int getStackSize(boolean p_135450_, int p_135451_, boolean p_135452_) -
moveItemToGrid
-
testClearGrid
private boolean testClearGrid() -
getAmountOfFreeSlotsInInventory
private int getAmountOfFreeSlotsInInventory()
-