public class MerchantResultSlot extends Slot
| Modifier and Type | Field and Description |
|---|---|
private IMerchant |
merchant |
private MerchantInventory |
merchantInventory |
private PlayerEntity |
player |
private int |
removeCount |
inventory, slotNumber, xPos, yPos| Constructor and Description |
|---|
MerchantResultSlot(PlayerEntity player,
IMerchant merchant,
MerchantInventory 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(PlayerEntity thePlayer,
ItemStack stack) |
canTakeStack, func_225517_c_, getHasStack, getItemStackLimit, getSlotIndex, getSlotStackLimit, getStack, isEnabled, isSameInventory, onSlotChange, onSlotChanged, onSwapCraft, putStack, setBackgroundprivate final MerchantInventory merchantInventory
private final PlayerEntity player
private int removeCount
private final IMerchant merchant
public MerchantResultSlot(PlayerEntity player, IMerchant merchant, MerchantInventory merchantInventory, int slotIndex, int xPosition, int yPosition)
public boolean isItemValid(ItemStack stack)
isItemValid in class Slotpublic ItemStack decrStackSize(int amount)
decrStackSize in class Slotprotected void onCrafting(ItemStack stack, int amount)
onCrafting in class Slotprotected void onCrafting(ItemStack stack)
onCrafting in class Slotpublic ItemStack onTake(PlayerEntity thePlayer, ItemStack stack)