net.minecraft.world.inventory

public class MerchantMenu

extends AbstractContainerMenu

ccm
net.minecraft.world.inventory.MerchantMenu
net.minecraft.class_1728
net.minecraft.screen.MerchantScreenHandler
net.minecraft.src.C_1294_
net.minecraft.world.inventory.ContainerMerchant

Field summary

Modifier and TypeField
protected static final int
k
PAYMENT1_SLOT
field_30830
INPUT_1_ID
f_150619_
protected static final int
l
PAYMENT2_SLOT
field_30831
INPUT_2_ID
f_150620_
protected static final int
m
RESULT_SLOT
field_30832
OUTPUT_ID
f_150621_
private static final int
n
INV_SLOT_START
field_30833
INVENTORY_START
f_150622_
private static final int
o
INV_SLOT_END
field_30834
INVENTORY_END
f_150623_
private static final int
p
USE_ROW_SLOT_START
field_30835
HOTBAR_START
f_150624_
private static final int
q
USE_ROW_SLOT_END
field_30836
HOTBAR_END
f_150625_
private static final int
r
SELLSLOT1_X
field_30837
INPUT_1_X
f_150626_
private static final int
s
SELLSLOT2_X
field_30838
INPUT_2_X
f_150627_
private static final int
t
BUYSLOT_X
field_30839
OUTPUT_X
f_150628_
private static final int
u
ROW_Y
field_30840
SLOT_Y
f_150629_
private final Merchant
v
trader
field_7863
merchant
f_40027_
private final MerchantContainer
w
tradeContainer
field_7861
merchantInventory
f_40028_
private int
x
merchantLevel
field_18669
levelProgress
f_40029_
private boolean
y
showProgressBar
field_18670
leveled
f_40030_
private boolean
z
canRestock
field_19358
canRefreshTrades
f_40031_

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)
m_40048_(boolean arg0)
public void
a(bdq arg0)
slotsChanged(Container arg0)
method_7609(class_1263 arg0)
onContentChanged(Inventory arg0)
m_6199_(C_464_ arg0)
public void
e(int arg0)
setSelectionHint(int arg0)
method_7650(int arg0)
setRecipeIndex(int index)
m_40063_(int arg0)
public boolean
a(byo arg0)
stillValid(Player arg0)
method_7597(class_1657 arg0)
canUse(PlayerEntity arg0)
m_6875_(C_1141_ arg0)
public int
l()
getTraderXp()
method_19254()
getExperience()
m_40065_()
public int
m()
getFutureTraderXp()
method_19256()
getMerchantRewardedExperience()
m_40068_()
public void
f(int arg0)
setXp(int arg0)
method_19255(int arg0)
setExperienceFromServer(int experience)
m_40066_(int arg0)
public int
n()
getTraderLevel()
method_19258()
getLevelProgress()
m_40071_()
public void
g(int arg0)
setMerchantLevel(int arg0)
method_19257(int arg0)
setLevelProgress(int levelProgress)
m_40069_(int arg0)
public void
b(boolean arg0)
setCanRestock(boolean arg0)
method_20700(boolean arg0)
setCanRefreshTrades(boolean canRefreshTrades)
m_40058_(boolean arg0)
public boolean
o()
canRestock()
method_20701()
canRefreshTrades()
m_40074_()
public boolean
a(cfz arg0, ccx arg1)
canTakeItemForPickAll(ItemStack arg0, Slot arg1)
method_7613(class_1799 arg0, class_1735 arg1)
canInsertIntoSlot(ItemStack arg0, Slot arg1)
m_5882_(C_1391_ p_40045_, C_1305_ arg1)
public ItemStack
a(byo arg0, int arg1)
quickMoveStack(Player arg0, int arg1)
method_7601(class_1657 arg0, int arg1)
quickMove(PlayerEntity arg0, int arg1)
m_7648_(C_1141_ p_40054_, int arg1)
private void
r()
playTradeSound()
method_20595()
playYesSound()
m_40077_()
public void
b(byo arg0)
removed(Player arg0)
method_7595(class_1657 arg0)
onClosed(PlayerEntity arg0)
m_6877_(C_1141_ arg0)
public void
h(int arg0)
tryMoveItems(int arg0)
method_20215(int arg0)
switchTo(int recipeIndex)
m_40072_(int arg0)
private void
c(int arg0, cfz arg1)
moveFromInventoryToPaymentSlot(int arg0, ItemStack arg1)
method_20214(int arg0, class_1799 arg1)
autofill(int slot, ItemStack stack)
m_40060_(int p_40062_, C_1391_ arg1)
public void
a(cll arg0)
setOffers(MerchantOffers arg0)
method_17437(class_1916 arg0)
setOffers(TradeOfferList offers)
m_40046_(C_1552_ arg0)
public MerchantOffers
p()
getOffers()
method_17438()
getRecipes()
m_40075_()
public boolean
q()
showProgressBar()
method_19259()
isLeveled()
m_40076_()