net.minecraft.world.village.trade

public class TradeOffer

ahp
net.minecraft.class_1144
net.minecraft.world.village.trade.TradeOffer
net.minecraft.village.MerchantRecipe

Field summary

Modifier and TypeField
private ItemStack
a
field_4503
primaryPayment
itemToBuy
private ItemStack
b
field_4504
secondaryPayment
secondItemToBuy
private ItemStack
c
field_4505
result
itemToSell
private int
d
field_4506
uses
toolUses
private int
e
field_5459
maxUses
maxTradeUses
private boolean
f
field_9188
rewardXp
rewardsExp

Constructor summary

ModifierConstructor
public (NbtCompound nbt)
public (ItemStack primaryPayment, ItemStack secondaryPayment, ItemStack result)
public (ItemStack primaryPayment, ItemStack secondaryPayment, ItemStack result, int uses, int maxUses)
public (ItemStack payment, ItemStack result)
public (ItemStack payment, Item result)

Method summary

Modifier and TypeMethod
public ItemStack
a()
method_3547()
getPrimaryPayment()
getItemToBuy()
public ItemStack
b()
method_3550()
getSecondaryPayment()
getSecondItemToBuy()
public boolean
c()
method_3552()
hasSecondaryPayment()
hasSecondItemToBuy()
public ItemStack
d()
method_3553()
getResult()
getItemToSell()
public int
e()
method_8451()
getUses()
getToolUses()
public int
f()
method_8452()
getMaxUses()
getMaxTradeUses()
public void
g()
method_3555()
use()
incrementToolUses()
public void
a(int arg0)
method_4663(int arg0)
increaseMaxUses(int uses)
increaseMaxTradeUses(int increment)
public boolean
h()
method_4664()
isDisabled()
isRecipeDisabled()
public boolean
j()
method_8453()
rewardXp()
getRewardsExp()
public void
a(dr arg0)
method_3548(class_322 arg0)
readNbt(NbtCompound nbt)
readFromTags(NBTTagCompound tagCompound)
public NbtCompound
k()
method_3556()
toNbt()
writeToTags()
public void
i()
method_4665()
clearUses()
compensateToolUses()