java.lang.Object
com.github.retrooper.packetevents.protocol.recipe.data.MerchantOffer
All Implemented Interfaces:
RecipeData

public class MerchantOffer extends Object implements RecipeData
  • 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

      public MerchantItemCost getFirstInputCost()
    • setFirstInputCost

      public void setFirstInputCost(MerchantItemCost firstInputCost)
    • getFirstInputItem

      @Obsolete public ItemStack getFirstInputItem()
    • setFirstInputItem

      @Obsolete public void setFirstInputItem(ItemStack firstInputItem)
    • getSecondInputCost

      @Nullable public @Nullable MerchantItemCost getSecondInputCost()
    • setSecondInputCost

      public void setSecondInputCost(@Nullable @Nullable MerchantItemCost secondInputCost)
    • getSecondInputItem

      @Obsolete @Nullable public @Nullable ItemStack getSecondInputItem()
    • setSecondInputItem

      @Obsolete public void setSecondInputItem(@Nullable @Nullable ItemStack secondInputItem)
    • getOutputItem

      public ItemStack getOutputItem()
    • setOutputItem

      public void setOutputItem(ItemStack outputItem)
    • 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()