Package net.minecraft.item.crafting
Class ServerRecipePlacer<C extends IInventory>
java.lang.Object
net.minecraft.item.crafting.ServerRecipePlacer<C>
- All Implemented Interfaces:
IRecipePlacer<Integer>
- Direct Known Subclasses:
ServerRecipePlacerFurnace
public class ServerRecipePlacer<C extends IInventory>
extends Object
implements IRecipePlacer<Integer>
-
Field Summary
Modifier and TypeFieldDescriptionprotected PlayerInventory
protected static final org.apache.logging.log4j.Logger
protected RecipeBookContainer<C>
protected final RecipeItemHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItemToSlot
(Iterator<Integer> p_201500_1_, int p_201500_2_, int p_201500_3_, int p_201500_4_, int p_201500_5_) protected void
private int
protected int
getStackSize
(boolean p_201509_1_, int p_201509_2_, boolean p_201509_3_) protected void
handleRecipeClicked
(IRecipe<C> p_201508_1_, boolean p_201508_2_) protected void
moveItemToGrid
(Slot p_194325_1_, ItemStack p_194325_2_) protected void
moveItemToInventory
(int p_201510_1_) void
recipeClicked
(ServerPlayerEntity p_194327_1_, IRecipe<C> p_194327_2_, boolean p_194327_3_) 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.item.crafting.IRecipePlacer
placeRecipe
-
Field Details
-
LOGGER
protected static final org.apache.logging.log4j.Logger LOGGER -
stackedContents
-
inventory
-
-
Constructor Details
-
ServerRecipePlacer
-
-
Method Details
-
recipeClicked
public void recipeClicked(ServerPlayerEntity p_194327_1_, @Nullable IRecipe<C> p_194327_2_, boolean p_194327_3_) -
clearGrid
protected void clearGrid() -
moveItemToInventory
protected void moveItemToInventory(int p_201510_1_) -
handleRecipeClicked
-
addItemToSlot
public void addItemToSlot(Iterator<Integer> p_201500_1_, int p_201500_2_, int p_201500_3_, int p_201500_4_, int p_201500_5_) - Specified by:
addItemToSlot
in interfaceIRecipePlacer<C extends IInventory>
-
getStackSize
protected int getStackSize(boolean p_201509_1_, int p_201509_2_, boolean p_201509_3_) -
moveItemToGrid
-
testClearGrid
private boolean testClearGrid() -
getAmountOfFreeSlotsInInventory
private int getAmountOfFreeSlotsInInventory()
-