public class GrindstoneContainer extends Container
Modifier and Type | Field and Description |
---|---|
private IInventory |
inputInventory |
private IInventory |
outputInventory |
private IWorldPosCallable |
worldPosCallable |
inventorySlots, windowId
Constructor and Description |
---|
GrindstoneContainer(int p_i50080_1_,
PlayerInventory playerInventoryIn) |
GrindstoneContainer(int windowIdIn,
PlayerInventory p_i50081_2_,
IWorldPosCallable worldPosCallableIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(PlayerEntity playerIn) |
private ItemStack |
copyEnchantments(ItemStack copyTo,
ItemStack copyFrom) |
void |
onContainerClosed(PlayerEntity playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
private ItemStack |
removeEnchantments(ItemStack stack,
int damage,
int count) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
private void |
updateRecipeOutput() |
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBar
private final IInventory outputInventory
private final IInventory inputInventory
private final IWorldPosCallable worldPosCallable
public GrindstoneContainer(int p_i50080_1_, PlayerInventory playerInventoryIn)
public GrindstoneContainer(int windowIdIn, PlayerInventory p_i50081_2_, IWorldPosCallable worldPosCallableIn)
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
in class Container
private void updateRecipeOutput()
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