public class StonecutterContainer extends Container
Modifier and Type | Field and Description |
---|---|
IInventory |
inputInventory |
inventorySlots, windowId
Constructor and Description |
---|
StonecutterContainer(int windowIdIn,
PlayerInventory playerInventoryIn) |
StonecutterContainer(int windowIdIn,
PlayerInventory playerInventoryIn,
IWorldPosCallable worldPosCallableIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(PlayerEntity playerIn) |
boolean |
canMergeSlot(ItemStack stack,
Slot slotIn) |
boolean |
enchantItem(PlayerEntity playerIn,
int id) |
java.util.List<StonecuttingRecipe> |
getRecipeList() |
int |
getRecipeListSize() |
int |
getSelectedRecipe() |
ContainerType<?> |
getType() |
boolean |
hasItemsinInputSlot() |
void |
onContainerClosed(PlayerEntity playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
void |
setInventoryUpdateListener(java.lang.Runnable listenerIn) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, clearContainer, computeStackSize, detectAndSendChanges, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, isValidDragMode, isWithinUsableDistance, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBar
public final IInventory inputInventory
public StonecutterContainer(int windowIdIn, PlayerInventory playerInventoryIn)
public StonecutterContainer(int windowIdIn, PlayerInventory playerInventoryIn, IWorldPosCallable worldPosCallableIn)
public int getSelectedRecipe()
public java.util.List<StonecuttingRecipe> getRecipeList()
public int getRecipeListSize()
public boolean hasItemsinInputSlot()
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith
in class Container
public boolean enchantItem(PlayerEntity playerIn, int id)
enchantItem
in class Container
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
in class Container
public ContainerType<?> getType()
public void setInventoryUpdateListener(java.lang.Runnable listenerIn)
public boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot
in class Container
public ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
transferStackInSlot
in class Container
public void onContainerClosed(PlayerEntity playerIn)
onContainerClosed
in class Container