net.minecraft.world.inventory

public class MerchantContainer

implements Container

bxr
net.minecraft.world.inventory.MerchantContainer
net.minecraft.class_1725
net.minecraft.village.MerchantInventory
net.minecraft.src.C_1293_
net.minecraft.world.inventory.InventoryMerchant

Field summary

Modifier and TypeField
private final Merchant
b
merchant
field_7844
merchant
f_39997_
private final NonNullList<ItemStack>
c
itemStacks
field_7845
inventory
f_39998_
private MerchantOffer
d
activeOffer
field_7843
tradeOffer
f_39999_
private int
e
selectionHint
field_7842
offerIndex
f_40000_
private int
f
futureXp
field_18668
merchantRewardedExperience
f_40001_

Constructor summary

ModifierConstructor
public (Merchant merchant)

Method summary

Modifier and TypeMethod
public int
b()
getContainerSize()
method_5439()
size()
m_6643_()
public boolean
c()
isEmpty()
method_5442()
isEmpty()
m_7983_()
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getStack(int arg0)
m_8020_(int arg0)
public ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
removeStack(int arg0, int arg1)
m_7407_(int p_40011_, int arg1)
private boolean
d(int arg0)
isPaymentSlot(int arg0)
method_7644(int arg0)
needsOfferUpdate(int slot)
m_40022_(int arg0)
public ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
removeStack(int arg0)
m_8016_(int arg0)
public void
a(int arg0, cax arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setStack(int arg0, ItemStack arg1)
m_6836_(int p_40014_, C_1391_ arg1)
public boolean
a(buc arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity arg0)
m_6542_(C_1141_ arg0)
public void
e()
setChanged()
method_5431()
markDirty()
m_6596_()
public void
f()
updateSellItem()
method_7645()
updateOffers()
m_40024_()
public MerchantOffer
g()
getActiveOffer()
method_7642()
getTradeOffer()
m_40025_()
public void
c(int arg0)
setSelectionHint(int arg0)
method_7643(int arg0)
setOfferIndex(int index)
m_40020_(int arg0)
public void
a()
clearContent()
method_5448()
clear()
m_6211_()
public int
h()
getFutureXp()
method_19252()
getMerchantRewardedExperience()
m_40026_()