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 Inventory
private static final int
protected RecipeBookMenu
<I, R> protected final StackedContents
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addItemToSlot
(Integer pItem, int pSlot, int pMaxAmount, int pX, int pY) protected void
private int
protected int
getStackSize
(boolean pPlaceAll, int pMaxPossible, boolean pRecipeMatches) protected void
handleRecipeClicked
(RecipeHolder<R> pRecipe, boolean pPlaceAll) protected int
moveItemToGrid
(Slot pSlot, ItemStack pStack, int pMaxAmount) void
recipeClicked
(ServerPlayer pPlayer, RecipeHolder<R> pRecipe, boolean pPlaceAll) 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
-
ITEM_NOT_FOUND
private static final int ITEM_NOT_FOUND- See Also:
-
stackedContents
-
inventory
-
-
Constructor Details
-
ServerPlaceRecipe
-
-
Method Details
-
recipeClicked
public void recipeClicked(ServerPlayer pPlayer, @Nullable RecipeHolder<R> pRecipe, boolean pPlaceAll) -
clearGrid
protected void clearGrid() -
handleRecipeClicked
-
addItemToSlot
- Specified by:
addItemToSlot
in interfacePlaceRecipe<I extends RecipeInput>
-
getStackSize
protected int getStackSize(boolean pPlaceAll, int pMaxPossible, boolean pRecipeMatches) -
moveItemToGrid
-
testClearGrid
private boolean testClearGrid() -
getAmountOfFreeSlotsInInventory
private int getAmountOfFreeSlotsInInventory()
-