net.minecraft.world.inventory

public class MerchantMenu

extends AbstractContainerMenu

cto
net.minecraft.world.inventory.MerchantMenu
net.minecraft.class_1728
net.minecraft.screen.MerchantScreenHandler
net.minecraft.world.inventory.ContainerMerchant

Field summary

Modifier and TypeField
protected static final int
m
PAYMENT1_SLOT
field_30830
INPUT_1_ID
protected static final int
n
PAYMENT2_SLOT
field_30831
INPUT_2_ID
protected static final int
o
RESULT_SLOT
field_30832
OUTPUT_ID
private static final int
p
INV_SLOT_START
field_30833
INVENTORY_START
private static final int
q
INV_SLOT_END
field_30834
INVENTORY_END
private static final int
r
USE_ROW_SLOT_START
field_30835
HOTBAR_START
private static final int
s
USE_ROW_SLOT_END
field_30836
HOTBAR_END
private static final int
t
SELLSLOT1_X
field_30837
INPUT_1_X
private static final int
u
SELLSLOT2_X
field_30838
INPUT_2_X
private static final int
v
BUYSLOT_X
field_30839
OUTPUT_X
private static final int
w
ROW_Y
field_30840
SLOT_Y
private final Merchant
x
trader
field_7863
merchant
private final MerchantContainer
y
tradeContainer
field_7861
merchantInventory
private int
z
merchantLevel
field_18669
levelProgress
private boolean
A
showProgressBar
field_18670
leveled
private boolean
B
canRestock
field_19358
canRefreshTrades

Constructor summary

ModifierConstructor
public (int syncId, Inventory playerInventory)
public (int syncId, Inventory playerInventory, Merchant merchant)

Method summary

Modifier and TypeMethod
public void
a(boolean arg0)
setShowProgressBar(boolean arg0)
method_19253(boolean arg0)
setLeveled(boolean leveled)
public void
a(bse arg0)
slotsChanged(Container arg0)
method_7609(class_1263 arg0)
onContentChanged(Inventory arg0)
public void
e(int arg0)
setSelectionHint(int arg0)
method_7650(int arg0)
setRecipeIndex(int index)
public boolean
b(coy arg0)
stillValid(Player arg0)
method_7597(class_1657 arg0)
canUse(PlayerEntity arg0)
public int
l()
getTraderXp()
method_19254()
getExperience()
public int
m()
getFutureTraderXp()
method_19256()
getMerchantRewardedExperience()
public void
f(int arg0)
setXp(int arg0)
method_19255(int arg0)
setExperienceFromServer(int experience)
public int
n()
getTraderLevel()
method_19258()
getLevelProgress()
public void
g(int arg0)
setMerchantLevel(int arg0)
method_19257(int arg0)
setLevelProgress(int levelProgress)
public void
b(boolean arg0)
setCanRestock(boolean arg0)
method_20700(boolean arg0)
setCanRefreshTrades(boolean canRefreshTrades)
public boolean
o()
canRestock()
method_20701()
canRefreshTrades()
public boolean
a(cwq arg0, cua arg1)
canTakeItemForPickAll(ItemStack arg0, Slot arg1)
method_7613(class_1799 arg0, class_1735 arg1)
canInsertIntoSlot(ItemStack arg0, Slot arg1)
public ItemStack
b(coy arg0, int arg1)
quickMoveStack(Player arg0, int arg1)
method_7601(class_1657 arg0, int arg1)
quickMove(PlayerEntity arg0, int arg1)
private void
r()
playTradeSound()
method_20595()
playYesSound()
public void
a(coy arg0)
removed(Player arg0)
method_7595(class_1657 arg0)
onClosed(PlayerEntity arg0)
public void
h(int arg0)
tryMoveItems(int arg0)
method_20215(int arg0)
switchTo(int recipeIndex)
private void
a(int arg0, dfe arg1)
moveFromInventoryToPaymentSlot(int arg0, ItemCost arg1)
method_20214(int arg0, class_9306 arg1)
autofill(int slot, TradedItem stack)
public void
a(dfh arg0)
setOffers(MerchantOffers arg0)
method_17437(class_1916 arg0)
setOffers(TradeOfferList offers)
public MerchantOffers
p()
getOffers()
method_17438()
getRecipes()
public boolean
q()
showProgressBar()
method_19259()
isLeveled()