Package net.minecraft.item
Class MerchantOffer
- java.lang.Object
-
- net.minecraft.item.MerchantOffer
-
public class MerchantOffer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MerchantOffer(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToSpecialPriceDiff(int p_222207_1_)
ItemStack
assemble()
CompoundNBT
createTag()
ItemStack
getBaseCostA()
ItemStack
getCostA()
ItemStack
getCostB()
int
getDemand()
int
getMaxUses()
float
getPriceMultiplier()
ItemStack
getResult()
int
getSpecialPriceDiff()
int
getUses()
int
getXp()
void
increaseUses()
boolean
isOutOfStock()
private boolean
isRequiredItem(ItemStack p_222201_1_, ItemStack p_222201_2_)
boolean
needsRestock()
void
resetSpecialPriceDiff()
void
resetUses()
boolean
satisfiedBy(ItemStack p_222204_1_, ItemStack p_222204_2_)
void
setSpecialPriceDiff(int p_222209_1_)
void
setToOutOfStock()
boolean
shouldRewardExp()
boolean
take(ItemStack p_222215_1_, ItemStack p_222215_2_)
void
updateDemand()
-
-
-
Field Detail
-
baseCostA
private final ItemStack baseCostA
-
costB
private final ItemStack costB
-
result
private final ItemStack 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 Detail
-
MerchantOffer
public MerchantOffer(CompoundNBT p_i50012_1_)
-
MerchantOffer
public MerchantOffer(ItemStack p_i50013_1_, ItemStack p_i50013_2_, int p_i50013_3_, int p_i50013_4_, float p_i50013_5_)
-
MerchantOffer
public 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
public 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_)
-
-
Method Detail
-
getBaseCostA
public ItemStack getBaseCostA()
-
getCostA
public ItemStack getCostA()
-
getCostB
public ItemStack getCostB()
-
getResult
public ItemStack getResult()
-
updateDemand
public void updateDemand()
-
assemble
public ItemStack 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
public CompoundNBT createTag()
-
-