public class MerchantResultSlot extends Slot
inventory, slotNumber, xPos, yPos| コンストラクタと説明 |
|---|
MerchantResultSlot(PlayerEntity player,
IMerchant merchant,
MerchantInventory merchantInventory,
int slotIndex,
int xPosition,
int yPosition) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
ItemStack |
decrStackSize(int amount)
Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.
|
boolean |
isItemValid(ItemStack stack)
Check if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.
|
protected void |
onCrafting(ItemStack stack)
the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
|
protected void |
onCrafting(ItemStack stack,
int amount)
the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
|
ItemStack |
onTake(PlayerEntity thePlayer,
ItemStack stack) |
canTakeStack, func_225517_c_, getHasStack, getItemStackLimit, getSlotIndex, getSlotStackLimit, getStack, isEnabled, isSameInventory, onSlotChange, onSlotChanged, onSwapCraft, putStack, setBackgroundpublic MerchantResultSlot(PlayerEntity player, IMerchant merchant, MerchantInventory merchantInventory, int slotIndex, int xPosition, int yPosition)
public boolean isItemValid(ItemStack stack)
isItemValid クラス内 Slotpublic ItemStack decrStackSize(int amount)
decrStackSize クラス内 Slotprotected void onCrafting(ItemStack stack, int amount)
onCrafting クラス内 Slotprotected void onCrafting(ItemStack stack)
onCrafting クラス内 Slotpublic ItemStack onTake(PlayerEntity thePlayer, ItemStack stack)