Class MerchantOffer
java.lang.Object
com.github.retrooper.packetevents.protocol.recipe.data.MerchantOffer
- All Implemented Interfaces:
RecipeData
-
Method Summary
Modifier and TypeMethodDescriptionint
int
float
@Nullable MerchantItemCost
@Nullable ItemStack
int
int
getUses()
int
getXp()
boolean
static MerchantOffer
of
(ItemStack buyItem1, @Nullable ItemStack buyItem2, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) static MerchantOffer
of
(ItemStack buyItem1, ItemStack sellItem, int uses, int maxUses, int xp, float priceMultiplier, int demand) static MerchantOffer
of
(ItemStack buyItem1, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) static MerchantOffer
of
(MerchantItemCost buyCost1, @Nullable MerchantItemCost buyCost2, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) static MerchantOffer
of
(MerchantItemCost buyCost1, ItemStack sellItem, int uses, int maxUses, int xp, float priceMultiplier, int demand) static MerchantOffer
of
(MerchantItemCost buyCost1, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) void
setDemand
(int demand) void
setFirstInputCost
(MerchantItemCost firstInputCost) void
setFirstInputItem
(ItemStack firstInputItem) void
setMaxUses
(int maxUses) void
setOutputItem
(ItemStack outputItem) void
setPriceMultiplier
(float priceMultiplier) void
setSecondInputCost
(@Nullable MerchantItemCost secondInputCost) void
setSecondInputItem
(@Nullable ItemStack secondInputItem) void
setSpecialPrice
(int specialPrice) void
setUses
(int uses) void
setXp
(int xp)
-
Method Details
-
of
public static MerchantOffer of(ItemStack buyItem1, @Nullable @Nullable ItemStack buyItem2, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) -
of
public static MerchantOffer of(ItemStack buyItem1, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) -
of
public static MerchantOffer of(ItemStack buyItem1, ItemStack sellItem, int uses, int maxUses, int xp, float priceMultiplier, int demand) -
of
public static MerchantOffer of(MerchantItemCost buyCost1, @Nullable @Nullable MerchantItemCost buyCost2, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) -
of
public static MerchantOffer of(MerchantItemCost buyCost1, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) -
of
public static MerchantOffer of(MerchantItemCost buyCost1, ItemStack sellItem, int uses, int maxUses, int xp, float priceMultiplier, int demand) -
getFirstInputCost
-
setFirstInputCost
-
getFirstInputItem
-
setFirstInputItem
-
getSecondInputCost
-
setSecondInputCost
-
getSecondInputItem
-
setSecondInputItem
-
getOutputItem
-
setOutputItem
-
getUses
public int getUses() -
setUses
public void setUses(int uses) -
getMaxUses
public int getMaxUses() -
setMaxUses
public void setMaxUses(int maxUses) -
getXp
public int getXp() -
setXp
public void setXp(int xp) -
getPriceMultiplier
public float getPriceMultiplier() -
setPriceMultiplier
public void setPriceMultiplier(float priceMultiplier) -
getDemand
public int getDemand() -
setDemand
public void setDemand(int demand) -
getSpecialPrice
public int getSpecialPrice() -
setSpecialPrice
public void setSpecialPrice(int specialPrice) -
isOutOfStock
public boolean isOutOfStock()
-