Class MerchantOffer
java.lang.Object
com.github.retrooper.packetevents.protocol.recipe.data.MerchantOffer
- All Implemented Interfaces:
RecipeData
-
Method Summary
Modifier and TypeMethodDescriptionintintfloat@Nullable MerchantItemCost@Nullable ItemStackintintgetUses()intgetXp()booleanstatic MerchantOfferof(ItemStack buyItem1, @Nullable ItemStack buyItem2, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) static MerchantOfferof(ItemStack buyItem1, ItemStack sellItem, int uses, int maxUses, int xp, float priceMultiplier, int demand) static MerchantOfferof(ItemStack buyItem1, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) static MerchantOfferof(MerchantItemCost buyCost1, @Nullable MerchantItemCost buyCost2, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) static MerchantOfferof(MerchantItemCost buyCost1, ItemStack sellItem, int uses, int maxUses, int xp, float priceMultiplier, int demand) static MerchantOfferof(MerchantItemCost buyCost1, ItemStack sellItem, int uses, int maxUses, int xp, int specialPrice, float priceMultiplier, int demand) voidsetDemand(int demand) voidsetFirstInputCost(MerchantItemCost firstInputCost) voidsetFirstInputItem(ItemStack firstInputItem) voidsetMaxUses(int maxUses) voidsetOutputItem(ItemStack outputItem) voidsetPriceMultiplier(float priceMultiplier) voidsetSecondInputCost(@Nullable MerchantItemCost secondInputCost) voidsetSecondInputItem(@Nullable ItemStack secondInputItem) voidsetSpecialPrice(int specialPrice) voidsetUses(int uses) voidsetXp(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()
-