public class ContainerRepair extends Container
| Modifier and Type | Field and Description |
|---|---|
int |
maximumCost
The maximum cost of repairing/renaming in the anvil.
|
int |
stackSizeToBeUsedInRepair
determined by damage of input item and stackSize of repair materials
|
crafters, inventoryItemStacks, inventorySlots, windowId| Constructor and Description |
|---|
ContainerRepair(InventoryPlayer p_i1800_1_,
World p_i1800_2_,
int p_i1800_3_,
int p_i1800_4_,
int p_i1800_5_,
EntityPlayer p_i1800_6_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCraftingToCrafters(ICrafting p_75132_1_) |
boolean |
canInteractWith(EntityPlayer p_75145_1_) |
void |
onContainerClosed(EntityPlayer p_75134_1_)
Called when the container is closed.
|
void |
onCraftMatrixChanged(IInventory p_75130_1_)
Callback for when the crafting matrix is changed.
|
ItemStack |
transferStackInSlot(EntityPlayer p_82846_1_,
int p_82846_2_)
Called when a player shift-clicks on a slot.
|
void |
updateItemName(java.lang.String p_82850_1_)
used by the Anvil GUI to update the Item Name being typed by the player
|
void |
updateProgressBar(int p_75137_1_,
int p_75137_2_) |
void |
updateRepairOutput()
called when the Anvil Input Slot changes, calculates the new result and puts it in the output slot
|
addSlotToContainer, calcRedstoneFromInventory, canDragIntoSlot, detectAndSendChanges, enchantItem, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94530_a, func_94532_c, func_94533_d, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, mergeItemStack, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, retrySlotClick, setPlayerIsPresent, slotClickpublic int maximumCost
public int stackSizeToBeUsedInRepair
public ContainerRepair(InventoryPlayer p_i1800_1_, World p_i1800_2_, int p_i1800_3_, int p_i1800_4_, int p_i1800_5_, EntityPlayer p_i1800_6_)
public void onCraftMatrixChanged(IInventory p_75130_1_)
onCraftMatrixChanged in class Containerpublic void updateRepairOutput()
public void addCraftingToCrafters(ICrafting p_75132_1_)
addCraftingToCrafters in class Containerpublic void updateProgressBar(int p_75137_1_,
int p_75137_2_)
updateProgressBar in class Containerpublic void onContainerClosed(EntityPlayer p_75134_1_)
onContainerClosed in class Containerpublic boolean canInteractWith(EntityPlayer p_75145_1_)
canInteractWith in class Containerpublic ItemStack transferStackInSlot(EntityPlayer p_82846_1_, int p_82846_2_)
transferStackInSlot in class Containerpublic void updateItemName(java.lang.String p_82850_1_)