public class TradeOffer extends Object
Modifier and Type | Field and Description |
---|---|
private int |
demandBonus |
private ItemStack |
firstBuyItem |
private int |
maxUses |
private int |
merchantExperience |
private float |
priceMultiplier |
private boolean |
rewardingPlayerExperience |
private ItemStack |
secondBuyItem |
private ItemStack |
sellItem |
private int |
specialPrice |
private int |
uses |
Constructor and Description |
---|
TradeOffer(CompoundTag compoundTag) |
TradeOffer(ItemStack buyItem,
ItemStack sellItem,
int maxUses,
int rewardedExp,
float priceMultiplier) |
TradeOffer(ItemStack firstBuyItem,
ItemStack secondBuyItem,
ItemStack sellItem,
int maxUses,
int rewardedExp,
float priceMultiplier) |
TradeOffer(ItemStack firstBuyItem,
ItemStack secondBuyItem,
ItemStack sellItem,
int uses,
int maxUses,
int rewardedExp,
float priceMultiplier) |
TradeOffer(ItemStack itemStack,
ItemStack itemStack2,
ItemStack itemStack3,
int int2,
int int3,
int int4,
float float2,
int int5) |
Modifier and Type | Method and Description |
---|---|
private boolean |
acceptsBuy(ItemStack given,
ItemStack sample) |
void |
clearSpecialPrice() |
void |
clearUses() |
boolean |
depleteBuyItems(ItemStack itemStack,
ItemStack itemStack2) |
ItemStack |
getAdjustedFirstBuyItem() |
int |
getDemandBonus() |
int |
getMaxUses() |
int |
getMerchantExperience() |
ItemStack |
getMutableSellItem() |
ItemStack |
getOriginalFirstBuyItem() |
float |
getPriceMultiplier() |
ItemStack |
getSecondBuyItem() |
ItemStack |
getSellItem() |
int |
getSpecialPrice() |
int |
getUses() |
void |
increaseSpecialPrice(int int2) |
boolean |
isDisabled() |
boolean |
matchesBuyItems(ItemStack first,
ItemStack second) |
boolean |
method_21834() |
void |
resetUses() |
void |
setSpecialPrice(int int2) |
boolean |
shouldRewardPlayerExperience() |
CompoundTag |
toTag() |
void |
updatePriceOnDemand() |
void |
use() |
private final ItemStack firstBuyItem
private final ItemStack secondBuyItem
private final ItemStack sellItem
private int uses
private final int maxUses
private boolean rewardingPlayerExperience
private int specialPrice
private int demandBonus
private float priceMultiplier
private int merchantExperience
public TradeOffer(CompoundTag compoundTag)
public TradeOffer(ItemStack buyItem, ItemStack sellItem, int maxUses, int rewardedExp, float priceMultiplier)
public TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int maxUses, int rewardedExp, float priceMultiplier)
public TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int rewardedExp, float priceMultiplier)
public ItemStack getOriginalFirstBuyItem()
public ItemStack getAdjustedFirstBuyItem()
public ItemStack getSecondBuyItem()
public ItemStack getMutableSellItem()
public void updatePriceOnDemand()
public ItemStack getSellItem()
public int getUses()
public void resetUses()
public int getMaxUses()
public void use()
public int getDemandBonus()
public void increaseSpecialPrice(int int2)
public void clearSpecialPrice()
public int getSpecialPrice()
public void setSpecialPrice(int int2)
public float getPriceMultiplier()
public int getMerchantExperience()
public boolean isDisabled()
public void clearUses()
public boolean method_21834()
public boolean shouldRewardPlayerExperience()
public CompoundTag toTag()