public class TradeOutputSlot extends Slot
Modifier and Type | Field and Description |
---|---|
private int |
amount |
private Merchant |
merchant |
private MerchantInventory |
merchantInventory |
private PlayerEntity |
player |
Constructor and Description |
---|
TradeOutputSlot(PlayerEntity player,
Merchant merchant,
MerchantInventory merchantInventory,
int index,
int x,
int y) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInsert(ItemStack stack) |
protected void |
onCrafted(ItemStack stack) |
protected void |
onCrafted(ItemStack stack,
int amount) |
ItemStack |
onTakeItem(PlayerEntity player,
ItemStack stack) |
ItemStack |
takeStack(int amount) |
canTakeItems, doDrawHoveringEffect, getBackgroundSprite, getMaxItemCount, getMaxItemCount, getStack, hasStack, markDirty, onStackChanged, onTake, setStack
private final MerchantInventory merchantInventory
private final PlayerEntity player
private int amount
private final Merchant merchant
public TradeOutputSlot(PlayerEntity player, Merchant merchant, MerchantInventory merchantInventory, int index, int x, int y)
public ItemStack onTakeItem(PlayerEntity player, ItemStack stack)
onTakeItem
in class Slot