Package net.minecraft.item.crafting
Class ServerRecipePlacer<C extends IInventory>
- java.lang.Object
-
- net.minecraft.item.crafting.ServerRecipePlacer<C>
-
- All Implemented Interfaces:
IRecipePlacer<java.lang.Integer>
- Direct Known Subclasses:
ServerRecipePlacerFurnace
public class ServerRecipePlacer<C extends IInventory> extends java.lang.Object implements IRecipePlacer<java.lang.Integer>
-
-
Field Summary
Fields Modifier and Type Field Description protected PlayerInventory
inventory
protected static org.apache.logging.log4j.Logger
LOGGER
protected RecipeBookContainer<C>
menu
protected RecipeItemHelper
stackedContents
-
Constructor Summary
Constructors Constructor Description ServerRecipePlacer(RecipeBookContainer<C> p_i50752_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItemToSlot(java.util.Iterator<java.lang.Integer> p_201500_1_, int p_201500_2_, int p_201500_3_, int p_201500_4_, int p_201500_5_)
protected void
clearGrid()
private int
getAmountOfFreeSlotsInInventory()
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
testClearGrid()
-
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 Detail
-
LOGGER
protected static final org.apache.logging.log4j.Logger LOGGER
-
stackedContents
protected final RecipeItemHelper stackedContents
-
inventory
protected PlayerInventory inventory
-
menu
protected RecipeBookContainer<C extends IInventory> menu
-
-
Constructor Detail
-
ServerRecipePlacer
public ServerRecipePlacer(RecipeBookContainer<C> p_i50752_1_)
-
-
Method Detail
-
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
protected void handleRecipeClicked(IRecipe<C> p_201508_1_, boolean p_201508_2_)
-
addItemToSlot
public void addItemToSlot(java.util.Iterator<java.lang.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_)
-
testClearGrid
private boolean testClearGrid()
-
getAmountOfFreeSlotsInInventory
private int getAmountOfFreeSlotsInInventory()
-
-