类 MerchantOffer
java.lang.Object
net.minecraft.world.item.trading.MerchantOffer
-
字段概要
字段 -
构造器概要
构造器构造器说明MerchantOffer
(CompoundTag pCompoundTag) MerchantOffer
(ItemStack pBaseCostA, ItemStack pResult, int pMaxUses, int pXp, float pPriceMultiplier) MerchantOffer
(ItemStack pBaseCostA, ItemStack pCostB, ItemStack pResult, int pMaxUses, int pXp, float pPriceMultiplier) MerchantOffer
(ItemStack pBaseCostA, ItemStack pCostB, ItemStack pResult, int pUses, int pMaxUses, int pXp, float pPriceMultiplier) MerchantOffer
(ItemStack pBaseCostA, ItemStack pCostB, ItemStack pResult, int pUses, int pMaxUses, int pXp, float pPriceMultiplier, int pDemand) -
方法概要
修饰符和类型方法说明void
addToSpecialPriceDiff
(int pAdd) assemble()
getCostA()
getCostB()
int
int
float
int
int
getUses()
int
getXp()
void
boolean
private boolean
isRequiredItem
(ItemStack pOffer, ItemStack pCost) boolean
void
void
boolean
satisfiedBy
(ItemStack pPlayerOfferA, ItemStack pPlayerOfferB) void
setSpecialPriceDiff
(int pPrice) void
boolean
boolean
void
-
字段详细资料
-
baseCostA
-
costB
-
result
-
uses
private int uses -
maxUses
private final int maxUses -
rewardExp
private boolean rewardExp -
specialPriceDiff
private int specialPriceDiff -
demand
private int demand -
priceMultiplier
private float priceMultiplier -
xp
private int xp
-
-
构造器详细资料
-
MerchantOffer
-
MerchantOffer
-
MerchantOffer
-
MerchantOffer
-
MerchantOffer
-
-
方法详细资料
-
getBaseCostA
-
getCostA
-
getCostB
-
getResult
-
updateDemand
public void updateDemand() -
assemble
-
getUses
public int getUses() -
resetUses
public void resetUses() -
getMaxUses
public int getMaxUses() -
increaseUses
public void increaseUses() -
getDemand
public int getDemand() -
addToSpecialPriceDiff
public void addToSpecialPriceDiff(int pAdd) -
resetSpecialPriceDiff
public void resetSpecialPriceDiff() -
getSpecialPriceDiff
public int getSpecialPriceDiff() -
setSpecialPriceDiff
public void setSpecialPriceDiff(int pPrice) -
getPriceMultiplier
public float getPriceMultiplier() -
getXp
public int getXp() -
isOutOfStock
public boolean isOutOfStock() -
setToOutOfStock
public void setToOutOfStock() -
needsRestock
public boolean needsRestock() -
shouldRewardExp
public boolean shouldRewardExp() -
createTag
-
satisfiedBy
-
isRequiredItem
-
take
-