public class RepairContainer extends Container
Modifier and Type | Field and Description |
---|---|
int |
materialCost |
inventorySlots, windowId
Constructor and Description |
---|
RepairContainer(int p_i50101_1_,
PlayerInventory p_i50101_2_) |
RepairContainer(int p_i50102_1_,
PlayerInventory p_i50102_2_,
IWorldPosCallable p_i50102_3_) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(PlayerEntity playerIn) |
int |
getMaximumCost() |
static int |
getNewRepairCost(int oldRepairCost) |
void |
onContainerClosed(PlayerEntity playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
void |
setMaximumCost(int value) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
void |
updateItemName(java.lang.String newName) |
void |
updateRepairOutput() |
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
public RepairContainer(int p_i50101_1_, PlayerInventory p_i50101_2_)
public RepairContainer(int p_i50102_1_, PlayerInventory p_i50102_2_, IWorldPosCallable p_i50102_3_)
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
in class Container
public void updateRepairOutput()
public static int getNewRepairCost(int oldRepairCost)
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 void updateItemName(java.lang.String newName)
public int getMaximumCost()
public void setMaximumCost(int value)