public class SlotMerchantResult extends Slot
backgroundLocation, backgroundMap, backgroundName, inventory, slotNumber, xPos, yPos
Constructor and Description |
---|
SlotMerchantResult(EntityPlayer player,
IMerchant merchant,
InventoryMerchant merchantInventory,
int slotIndex,
int xPosition,
int yPosition) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
decrStackSize(int amount) |
boolean |
isItemValid(ItemStack stack) |
protected void |
onCrafting(ItemStack stack) |
protected void |
onCrafting(ItemStack stack,
int amount) |
ItemStack |
onTake(EntityPlayer thePlayer,
ItemStack stack) |
canBeHovered, canTakeStack, getBackgroundLocation, getBackgroundMap, getBackgroundSprite, getHasStack, getItemStackLimit, getSlotIndex, getSlotStackLimit, getSlotTexture, getStack, isHere, isSameInventory, onSlotChange, onSlotChanged, onSwapCraft, putStack, setBackgroundLocation, setBackgroundName
public SlotMerchantResult(EntityPlayer player, IMerchant merchant, InventoryMerchant merchantInventory, int slotIndex, int xPosition, int yPosition)
public boolean isItemValid(ItemStack stack)
isItemValid
in class Slot
public ItemStack decrStackSize(int amount)
decrStackSize
in class Slot
protected void onCrafting(ItemStack stack, int amount)
onCrafting
in class Slot
protected void onCrafting(ItemStack stack)
onCrafting
in class Slot
public ItemStack onTake(EntityPlayer thePlayer, ItemStack stack)