net.minecraft.world.item.trading

public class MerchantOffer

cfv
net.minecraft.world.item.trading.MerchantOffer
net.minecraft.class_1914
net.minecraft.unmapped.C_argwryfu
net.minecraft.village.TradeOffer
net.minecraft.village.TradeOffer
net.minecraft.src.C_1551_
net.minecraft.world.item.trading.MerchantRecipe

Field summary

Modifier and TypeField
private final ItemStack
a
baseCostA
field_9146
f_fiwjfjsv
firstBuyItem
firstBuyItem
f_45310_
private final ItemStack
b
costB
field_9143
f_ahlxvzwr
secondBuyItem
secondBuyItem
f_45311_
private final ItemStack
c
result
field_9148
f_ehdiengs
sellItem
sellItem
f_45312_
private int
d
uses
field_9147
f_ldkgpymk
uses
uses
f_45313_
private final int
e
maxUses
field_9144
f_mgalkhcf
maxUses
maxUses
f_45314_
private boolean
f
rewardExp
field_9145
f_vcpzwcnv
rewardingPlayerExperience
rewardingPlayerExperience
f_45315_
private int
g
specialPriceDiff
field_18676
f_swwaavur
specialPrice
specialPrice
f_45316_
private int
h
demand
field_18677
f_lgvzktct
demandBonus
demandBonus
f_45317_
private float
i
priceMultiplier
field_18678
f_izfgozck
priceMultiplier
priceMultiplier
f_45318_
private int
j
xp
field_18679
f_orryzsqt
merchantExperience
merchantExperience
f_45319_

Constructor summary

ModifierConstructor
public (CompoundTag nbt)
public (ItemStack buyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier)
public (ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier)
public (ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier)
public (ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier, int demandBonus)

Method summary

Modifier and TypeMethod
public ItemStack
a()
getBaseCostA()
method_8246()
m_zhqjzxea()
getOriginalFirstBuyItem()
getOriginalFirstBuyItem()
m_45352_()
public ItemStack
b()
getCostA()
method_19272()
m_tavhnucy()
getAdjustedFirstBuyItem()
getAdjustedFirstBuyItem()
m_45358_()
public ItemStack
c()
getCostB()
method_8247()
m_isgpghfg()
getSecondBuyItem()
getSecondBuyItem()
m_45364_()
public ItemStack
d()
getResult()
method_8250()
m_mfibukla()
getSellItem()
getSellItem()
m_45368_()
public void
e()
updateDemand()
method_19274()
m_kktwxkpz()
updateDemandBonus()
updateDemandBonus()
m_45369_()
public ItemStack
f()
assemble()
method_18019()
m_gpklzshx()
copySellItem()
copySellItem()
m_45370_()
public int
g()
getUses()
method_8249()
m_rgdhugvk()
getUses()
getUses()
m_45371_()
public void
h()
resetUses()
method_19275()
m_ddwttpmu()
resetUses()
resetUses()
m_45372_()
public int
i()
getMaxUses()
method_8248()
m_msgntumj()
getMaxUses()
getMaxUses()
m_45373_()
public void
j()
increaseUses()
method_8244()
m_rfcgwqwz()
use()
use()
m_45374_()
public int
k()
getDemand()
method_21725()
m_maentgjr()
getDemandBonus()
getDemandBonus()
m_45375_()
public void
a(int arg0)
addToSpecialPriceDiff(int arg0)
method_8245(int arg0)
m_lkwfnfah(int arg0)
increaseSpecialPrice(int increment)
increaseSpecialPrice(int increment)
m_45353_(int arg0)
public void
l()
resetSpecialPriceDiff()
method_19276()
m_ghuhjdhg()
clearSpecialPrice()
clearSpecialPrice()
m_45376_()
public int
m()
getSpecialPriceDiff()
method_19277()
m_rvsrmyip()
getSpecialPrice()
getSpecialPrice()
m_45377_()
public void
b(int arg0)
setSpecialPriceDiff(int arg0)
method_19273(int arg0)
m_rnlvoxvy(int arg0)
setSpecialPrice(int specialPrice)
setSpecialPrice(int specialPrice)
m_45359_(int arg0)
public float
n()
getPriceMultiplier()
method_19278()
m_fmnignmw()
getPriceMultiplier()
getPriceMultiplier()
m_45378_()
public int
o()
getXp()
method_19279()
m_akycaqxo()
getMerchantExperience()
getMerchantExperience()
m_45379_()
public boolean
p()
isOutOfStock()
method_8255()
m_vavbplgu()
isDisabled()
isDisabled()
m_45380_()
public void
q()
setToOutOfStock()
method_8254()
m_zcwmrswy()
disable()
disable()
m_45381_()
public boolean
r()
needsRestock()
method_21834()
m_udvmsagx()
hasBeenUsed()
hasBeenUsed()
m_45382_()
public boolean
s()
shouldRewardExp()
method_8256()
m_asyggsbs()
shouldRewardPlayerExperience()
shouldRewardPlayerExperience()
m_45383_()
public CompoundTag
t()
createTag()
method_8251()
m_bdlmtqte()
toNbt()
toNbt()
m_45384_()
public boolean
a(cax arg0, cax arg1)
satisfiedBy(ItemStack arg0, ItemStack arg1)
method_16952(class_1799 arg0, class_1799 arg1)
m_rpshssao(C_sddaxwyk arg0, C_sddaxwyk arg1)
matchesBuyItems(ItemStack first, ItemStack second)
matchesBuyItems(ItemStack first, ItemStack second)
m_45355_(C_1391_ p_45357_, C_1391_ arg1)
private boolean
c(cax arg0, cax arg1)
isRequiredItem(ItemStack arg0, ItemStack arg1)
method_16954(class_1799 arg0, class_1799 arg1)
m_netdstkk(C_sddaxwyk arg0, C_sddaxwyk arg1)
acceptsBuy(ItemStack given, ItemStack sample)
acceptsBuy(ItemStack given, ItemStack sample)
m_45365_(C_1391_ p_45367_, C_1391_ arg1)
public boolean
b(cax arg0, cax arg1)
take(ItemStack arg0, ItemStack arg1)
method_16953(class_1799 arg0, class_1799 arg1)
m_jrpzwrcp(C_sddaxwyk arg0, C_sddaxwyk arg1)
depleteBuyItems(ItemStack firstBuyStack, ItemStack secondBuyStack)
depleteBuyItems(ItemStack firstBuyStack, ItemStack secondBuyStack)
m_45361_(C_1391_ p_45363_, C_1391_ arg1)