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 item, int p_slot, int maxAmount, int x, int y) protected voidprivate intprotected intgetStackSize(boolean placeAll, int maxPossible, boolean recipeMatches) protected voidhandleRecipeClicked(RecipeHolder<R> recipe, boolean placeAll) protected intmoveItemToGrid(Slot slot, ItemStack stack, int maxAmount) voidrecipeClicked(ServerPlayer player, RecipeHolder<R> recipe, boolean placeAll) 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
-
clearGrid
protected void clearGrid() -
handleRecipeClicked
-
addItemToSlot
- Specified by:
addItemToSlotin interfacePlaceRecipe<I extends RecipeInput>
-
getStackSize
protected int getStackSize(boolean placeAll, int maxPossible, boolean recipeMatches) -
moveItemToGrid
-
testClearGrid
private boolean testClearGrid() -
getAmountOfFreeSlotsInInventory
private int getAmountOfFreeSlotsInInventory()
-