public class PlayerContainer extends RecipeBookContainer<CraftingInventory>
Modifier and Type | Field and Description |
---|---|
boolean |
isLocalWorld |
inventorySlots, windowId
Constructor and Description |
---|
PlayerContainer(PlayerInventory playerInventory,
boolean localWorld,
PlayerEntity playerIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(PlayerEntity playerIn) |
boolean |
canMergeSlot(ItemStack stack,
Slot slotIn) |
void |
clear() |
void |
func_201771_a(RecipeItemHelper p_201771_1_) |
int |
getHeight() |
int |
getOutputSlot() |
int |
getSize() |
int |
getWidth() |
boolean |
matches(IRecipe<? super CraftingInventory> recipeIn) |
void |
onContainerClosed(PlayerEntity playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
func_217056_a, getRecipeBookCategories
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBar
public PlayerContainer(PlayerInventory playerInventory, boolean localWorld, PlayerEntity playerIn)
public void func_201771_a(RecipeItemHelper p_201771_1_)
func_201771_a
in class RecipeBookContainer<CraftingInventory>
public void clear()
clear
in class RecipeBookContainer<CraftingInventory>
public boolean matches(IRecipe<? super CraftingInventory> recipeIn)
matches
in class RecipeBookContainer<CraftingInventory>
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
in class Container
public void onContainerClosed(PlayerEntity playerIn)
onContainerClosed
in class Container
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith
in class Container
public ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
transferStackInSlot
in class Container
public boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot
in class Container
public int getOutputSlot()
getOutputSlot
in class RecipeBookContainer<CraftingInventory>
public int getWidth()
getWidth
in class RecipeBookContainer<CraftingInventory>
public int getHeight()
getHeight
in class RecipeBookContainer<CraftingInventory>
public int getSize()
getSize
in class RecipeBookContainer<CraftingInventory>