public class MerchantResultSlot extends Slot
Modifier and Type | Field and Description |
---|---|
private IMerchant |
merchant |
private PlayerEntity |
player |
private int |
removeCount |
private MerchantInventory |
slots |
Constructor and Description |
---|
MerchantResultSlot(PlayerEntity p_i1822_1_,
IMerchant p_i1822_2_,
MerchantInventory p_i1822_3_,
int p_i1822_4_,
int p_i1822_5_,
int p_i1822_6_) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkTakeAchievements(ItemStack p_75208_1_) |
boolean |
mayPlace(ItemStack p_75214_1_) |
protected void |
onQuickCraft(ItemStack p_75210_1_,
int p_75210_2_) |
ItemStack |
onTake(PlayerEntity p_190901_1_,
ItemStack p_190901_2_) |
ItemStack |
remove(int p_75209_1_) |
getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isSameInventory, mayPickup, onQuickCraft, onSwapCraft, set, setBackground, setChanged
private final MerchantInventory slots
private final PlayerEntity player
private int removeCount
private final IMerchant merchant
public MerchantResultSlot(PlayerEntity p_i1822_1_, IMerchant p_i1822_2_, MerchantInventory p_i1822_3_, int p_i1822_4_, int p_i1822_5_, int p_i1822_6_)
protected void onQuickCraft(ItemStack p_75210_1_, int p_75210_2_)
onQuickCraft
in class Slot
protected void checkTakeAchievements(ItemStack p_75208_1_)
checkTakeAchievements
in class Slot
public ItemStack onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)