public class RepairContainer extends Container
Modifier and Type | Field and Description |
---|---|
private IWorldPosCallable |
field_216980_g |
private IInventory |
inputSlots |
private static org.apache.logging.log4j.Logger |
LOGGER |
int |
materialCost |
private IntReferenceHolder |
maximumCost |
private IInventory |
outputSlot |
private PlayerEntity |
player |
private java.lang.String |
repairedItemName |
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
private static final org.apache.logging.log4j.Logger LOGGER
private final IInventory outputSlot
private final IInventory inputSlots
private final IntReferenceHolder maximumCost
private final IWorldPosCallable field_216980_g
public int materialCost
private java.lang.String repairedItemName
private final PlayerEntity player
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)