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, setBackground
public MerchantResultSlot(PlayerEntity player, IMerchant merchant, MerchantInventory merchantInventory, int slotIndex, int xPosition, int yPosition)
public boolean isItemValid(ItemStack stack)
isItemValid
クラス内 Slot
public ItemStack decrStackSize(int amount)
decrStackSize
クラス内 Slot
protected void onCrafting(ItemStack stack, int amount)
onCrafting
クラス内 Slot
protected void onCrafting(ItemStack stack)
onCrafting
クラス内 Slot
public ItemStack onTake(PlayerEntity thePlayer, ItemStack stack)