public class MerchantOffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ItemStack |
buyingStackFirst |
private ItemStack |
buyingStackSecond |
private int |
demand |
private boolean |
doesRewardEXP |
private int |
givenEXP |
private int |
maxUses |
private float |
priceMultiplier |
private ItemStack |
sellingStack |
private int |
specialPrice |
private int |
uses |
Constructor and Description |
---|
MerchantOffer(CompoundNBT dataTag) |
MerchantOffer(ItemStack buyingStackFirstIn,
ItemStack sellingStackIn,
int maxUsesIn,
int givenEXPIn,
float priceMultiplierIn) |
MerchantOffer(ItemStack buyingStackFirstIn,
ItemStack buyingStackSecondIn,
ItemStack sellingStackIn,
int maxUsesIn,
int givenEXPIn,
float priceMultiplierIn) |
MerchantOffer(ItemStack buyingStackFirstIn,
ItemStack buyingStackSecondIn,
ItemStack sellingStackIn,
int usesIn,
int maxUsesIn,
int givenEXPIn,
float priceMultiplierIn) |
MerchantOffer(ItemStack buyingStackFirstIn,
ItemStack buyingStackSecondIn,
ItemStack sellingStackIn,
int usesIn,
int maxUsesIn,
int givenEXPIn,
float priceMultiplierIn,
int demandIn) |
Modifier and Type | Method and Description |
---|---|
void |
calculateDemand() |
boolean |
doTransaction(ItemStack p_222215_1_,
ItemStack p_222215_2_) |
private boolean |
equalIgnoringDamage(ItemStack left,
ItemStack right) |
ItemStack |
func_222205_b() |
int |
func_222214_i() |
ItemStack |
getBuyingStackFirst() |
ItemStack |
getBuyingStackSecond() |
ItemStack |
getCopyOfSellingStack() |
int |
getDemand() |
boolean |
getDoesRewardExp() |
int |
getGivenExp() |
void |
getMaxUses() |
float |
getPriceMultiplier() |
ItemStack |
getSellingStack() |
int |
getSpecialPrice() |
int |
getUses() |
boolean |
hasBeenUsed() |
boolean |
hasNoUsesLeft() |
void |
increaseSpecialPrice(int add) |
void |
increaseUses() |
boolean |
matches(ItemStack p_222204_1_,
ItemStack p_222204_2_) |
void |
resetSpecialPrice() |
void |
resetUses() |
void |
setSpecialPrice(int price) |
CompoundNBT |
write() |
private final ItemStack buyingStackFirst
private final ItemStack buyingStackSecond
private final ItemStack sellingStack
private int uses
private final int maxUses
private boolean doesRewardEXP
private int specialPrice
private int demand
private float priceMultiplier
private int givenEXP
public MerchantOffer(CompoundNBT dataTag)
public MerchantOffer(ItemStack buyingStackFirstIn, ItemStack sellingStackIn, int maxUsesIn, int givenEXPIn, float priceMultiplierIn)
public MerchantOffer(ItemStack buyingStackFirstIn, ItemStack buyingStackSecondIn, ItemStack sellingStackIn, int maxUsesIn, int givenEXPIn, float priceMultiplierIn)
public MerchantOffer(ItemStack buyingStackFirstIn, ItemStack buyingStackSecondIn, ItemStack sellingStackIn, int usesIn, int maxUsesIn, int givenEXPIn, float priceMultiplierIn)
public ItemStack getBuyingStackFirst()
public ItemStack func_222205_b()
public ItemStack getBuyingStackSecond()
public ItemStack getSellingStack()
public void calculateDemand()
public ItemStack getCopyOfSellingStack()
public int getUses()
public void resetUses()
public int func_222214_i()
public void increaseUses()
public int getDemand()
public void increaseSpecialPrice(int add)
public void resetSpecialPrice()
public int getSpecialPrice()
public void setSpecialPrice(int price)
public float getPriceMultiplier()
public int getGivenExp()
public boolean hasNoUsesLeft()
public void getMaxUses()
public boolean hasBeenUsed()
public boolean getDoesRewardExp()
public CompoundNBT write()