Class MerchantResultSlot
- java.lang.Object
-
- net.minecraft.inventory.container.Slot
-
- net.minecraft.inventory.container.MerchantResultSlot
-
public class MerchantResultSlot extends Slot
-
-
Field Summary
Fields Modifier and Type Field Description private IMerchant
merchant
private PlayerEntity
player
private int
removeCount
private MerchantInventory
slots
-
Constructor Summary
Constructors Constructor 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_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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_)
-
Methods inherited from class net.minecraft.inventory.container.Slot
getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isSameInventory, mayPickup, onQuickCraft, onSwapCraft, set, setBackground, setChanged
-
-
-
-
Field Detail
-
slots
private final MerchantInventory slots
-
player
private final PlayerEntity player
-
removeCount
private int removeCount
-
merchant
private final IMerchant merchant
-
-
Constructor Detail
-
MerchantResultSlot
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_)
-
-
Method Detail
-
onQuickCraft
protected void onQuickCraft(ItemStack p_75210_1_, int p_75210_2_)
- Overrides:
onQuickCraft
in classSlot
-
checkTakeAchievements
protected void checkTakeAchievements(ItemStack p_75208_1_)
- Overrides:
checkTakeAchievements
in classSlot
-
onTake
public ItemStack onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
-
-