Package net.minecraft.item
Class MerchantOffer
java.lang.Object
net.minecraft.item.MerchantOffer
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMerchantOffer
(ItemStack p_i50013_1_, ItemStack p_i50013_2_, int p_i50013_3_, int p_i50013_4_, float p_i50013_5_) MerchantOffer
(ItemStack p_i50014_1_, ItemStack p_i50014_2_, ItemStack p_i50014_3_, int p_i50014_4_, int p_i50014_5_, float p_i50014_6_) MerchantOffer
(ItemStack p_i50015_1_, ItemStack p_i50015_2_, ItemStack p_i50015_3_, int p_i50015_4_, int p_i50015_5_, int p_i50015_6_, float p_i50015_7_) MerchantOffer
(ItemStack p_i51550_1_, ItemStack p_i51550_2_, ItemStack p_i51550_3_, int p_i51550_4_, int p_i51550_5_, int p_i51550_6_, float p_i51550_7_, int p_i51550_8_) MerchantOffer
(CompoundNBT p_i50012_1_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToSpecialPriceDiff
(int p_222207_1_) assemble()
getCostA()
getCostB()
int
int
float
int
int
getUses()
int
getXp()
void
boolean
private boolean
isRequiredItem
(ItemStack p_222201_1_, ItemStack p_222201_2_) boolean
void
void
boolean
satisfiedBy
(ItemStack p_222204_1_, ItemStack p_222204_2_) void
setSpecialPriceDiff
(int p_222209_1_) void
boolean
boolean
void
-
Field Details
-
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
-
-
Constructor Details
-
MerchantOffer
-
MerchantOffer
-
MerchantOffer
-
MerchantOffer
-
MerchantOffer
-
-
Method Details
-
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 p_222207_1_) -
resetSpecialPriceDiff
public void resetSpecialPriceDiff() -
getSpecialPriceDiff
public int getSpecialPriceDiff() -
setSpecialPriceDiff
public void setSpecialPriceDiff(int p_222209_1_) -
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
-