public class RepairContainer extends Container
| 修飾子とタイプ | フィールドと説明 |
|---|---|
int |
materialCost |
inventorySlots, windowId| コンストラクタと説明 |
|---|
RepairContainer(int p_i50101_1_,
PlayerInventory p_i50101_2_) |
RepairContainer(int p_i50102_1_,
PlayerInventory p_i50102_2_,
IWorldPosCallable p_i50102_3_) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canInteractWith(PlayerEntity playerIn)
Determines whether supplied player can use this container
|
int |
getMaximumCost()
Get's the maximum xp cost
|
static int |
getNewRepairCost(int oldRepairCost) |
void |
onContainerClosed(PlayerEntity playerIn)
Called when the container is closed.
|
void |
onCraftMatrixChanged(IInventory inventoryIn)
Callback for when the crafting matrix is changed.
|
void |
setMaximumCost(int value) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index)
Handle when the stack in slot
index is shift-clicked. |
void |
updateItemName(java.lang.String newName)
used by the Anvil GUI to update the Item Name being typed by the player
|
void |
updateRepairOutput()
called when the Anvil Input Slot changes, calculates the new result and puts it in the output slot
|
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, updateProgressBarpublic 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 クラス内 Containerpublic void updateRepairOutput()
public static int getNewRepairCost(int oldRepairCost)
public void onContainerClosed(PlayerEntity playerIn)
onContainerClosed クラス内 Containerpublic boolean canInteractWith(PlayerEntity playerIn)
canInteractWith クラス内 Containerpublic ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
index is shift-clicked. Normally this moves the stack between the player
inventory and the other inventory(s).transferStackInSlot クラス内 Containerpublic void updateItemName(java.lang.String newName)
public int getMaximumCost()
public void setMaximumCost(int value)