net.minecraft.world.item.trading

public class MerchantOffer

bqs
net.minecraft.world.item.trading.MerchantOffer
net.minecraft.class_1914
net.minecraft.village.TradeOffer
net.minecraft.item.MerchantOffer
net.minecraft.server.v1_16_R2.MerchantRecipe

Field summary

Modifier and TypeField
private final ItemStack
a
baseCostA
field_9146
firstBuyItem
field_222223_a
buyingItem1
private final ItemStack
b
costB
field_9143
secondBuyItem
field_222224_b
buyingItem2
private final ItemStack
c
result
field_9148
sellItem
field_222225_c
sellingItem
private int
d
uses
field_9147
uses
field_222226_d
uses
private final int
e
maxUses
field_9144
maxUses
field_222227_e
maxUses
private boolean
f
rewardExp
field_9145
rewardingPlayerExperience
field_222228_f
rewardExp
private int
g
specialPriceDiff
field_18676
specialPrice
field_222229_g
specialPrice
private int
h
demand
field_18677
demandBonus
field_222230_h
demand
private float
i
priceMultiplier
field_18678
priceMultiplier
field_222231_i
priceMultiplier
private int
j
xp
field_18679
merchantExperience
field_222232_j
xp

Constructor summary

ModifierConstructor
public (CompoundTag arg0)
public (ItemStack buyItem, ItemStack sellItem, int maxUses, int rewardedExp, float priceMultiplier)
public (ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int maxUses, int rewardedExp, float priceMultiplier)
public (ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int rewardedExp, float priceMultiplier)
public (ItemStack arg0, ItemStack arg1, ItemStack arg2, int arg3, int arg4, int arg5, float arg6, int arg7)

Method summary

Modifier and TypeMethod
public ItemStack
a()
getBaseCostA()
method_8246()
getOriginalFirstBuyItem()
func_222218_a()
public ItemStack
b()
getCostA()
method_19272()
getAdjustedFirstBuyItem()
func_222205_b()
getBuyItem1()
public ItemStack
c()
getCostB()
method_8247()
getSecondBuyItem()
func_222202_c()
getBuyItem2()
public ItemStack
d()
getResult()
method_8250()
getMutableSellItem()
func_222200_d()
getSellingItem()
public void
e()
updateDemand()
method_19274()
updatePriceOnDemand()
func_222222_e()
public ItemStack
f()
assemble()
method_18019()
getSellItem()
func_222206_f()
public int
g()
getUses()
method_8249()
getUses()
func_222213_g()
getUses()
public void
h()
resetUses()
method_19275()
resetUses()
func_222203_h()
resetUses()
public int
i()
getMaxUses()
method_8248()
getMaxUses()
func_222214_i()
getMaxUses()
public void
j()
increaseUses()
method_8244()
use()
func_222219_j()
increaseUses()
public int
k()
getDemand()
method_21725()
getDemandBonus()
func_225482_k()
getDemand()
public void
a(int arg0)
addToSpecialPriceDiff(int arg0)
method_8245(int arg0)
increaseSpecialPrice(int arg0)
func_222207_a(int arg0)
increaseSpecialPrice(int arg0)
public void
l()
resetSpecialPriceDiff()
method_19276()
clearSpecialPrice()
func_222220_k()
setSpecialPrice()
public int
m()
getSpecialPriceDiff()
method_19277()
getSpecialPrice()
func_222212_l()
getSpecialPrice()
public void
b(int arg0)
setSpecialPriceDiff(int arg0)
method_19273(int arg0)
setSpecialPrice(int arg0)
func_222209_b(int arg0)
setSpecialPrice(int arg0)
public float
n()
getPriceMultiplier()
method_19278()
getPriceMultiplier()
func_222211_m()
getPriceMultiplier()
public int
o()
getXp()
method_19279()
getMerchantExperience()
func_222210_n()
getXp()
public boolean
p()
isOutOfStock()
method_8255()
isDisabled()
func_222217_o()
isFullyUsed()
public void
q()
setToOutOfStock()
method_8254()
clearUses()
func_222216_p()
public boolean
r()
needsRestock()
method_21834()
method_21834()
func_226654_r_()
public boolean
s()
shouldRewardExp()
method_8256()
shouldRewardPlayerExperience()
func_222221_q()
isRewardExp()
public CompoundTag
t()
createTag()
method_8251()
toTag()
func_222208_r()
public boolean
a(bly arg0, bly arg1)
satisfiedBy(ItemStack arg0, ItemStack arg1)
method_16952(class_1799 arg0, class_1799 arg1)
matchesBuyItems(ItemStack first, ItemStack second)
func_222204_a(ItemStack arg0, ItemStack arg1)
private boolean
c(bly arg0, bly arg1)
isRequiredItem(ItemStack arg0, ItemStack arg1)
method_16954(class_1799 arg0, class_1799 arg1)
acceptsBuy(ItemStack given, ItemStack sample)
func_222201_c(ItemStack arg0, ItemStack arg1)
public boolean
b(bly arg0, bly arg1)
take(ItemStack arg0, ItemStack arg1)
method_16953(class_1799 arg0, class_1799 arg1)
depleteBuyItems(ItemStack arg0, ItemStack arg1)
func_222215_b(ItemStack arg0, ItemStack arg1)