public class StonecutterContainer extends Container
Modifier and Type | Field and Description |
---|---|
IInventory |
inputInventory |
(package private) Slot |
inputInventorySlot |
private CraftResultInventory |
inventory |
private java.lang.Runnable |
inventoryUpdateListener |
private ItemStack |
itemStackInput |
private long |
lastOnTake |
(package private) Slot |
outputInventorySlot |
private java.util.List<StonecuttingRecipe> |
recipes |
private IntReferenceHolder |
selectedRecipe |
private World |
world |
private IWorldPosCallable |
worldPosCallable |
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) |
private void |
updateAvailableRecipes(IInventory inventoryIn,
ItemStack stack) |
private void |
updateRecipeResultSlot() |
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
private final IWorldPosCallable worldPosCallable
private final IntReferenceHolder selectedRecipe
private final World world
private java.util.List<StonecuttingRecipe> recipes
private ItemStack itemStackInput
private long lastOnTake
final Slot inputInventorySlot
final Slot outputInventorySlot
private java.lang.Runnable inventoryUpdateListener
public final IInventory inputInventory
private final CraftResultInventory inventory
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
private void updateAvailableRecipes(IInventory inventoryIn, ItemStack stack)
private void updateRecipeResultSlot()
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