Class BuyItem


  • public class BuyItem
    extends java.lang.Object
    A class representing a buyable item.
    • Constructor Detail

      • BuyItem

        public BuyItem​(int id)
      • BuyItem

        public BuyItem​(int id,
                       int quantity)
    • Method Detail

      • getId

        public int getId()
      • setId

        public BuyItem setId​(int id)
      • getNotedId

        public int getNotedId()
      • setQuantity

        public BuyItem setQuantity​(int quantity)
      • getMinPrice

        public int getMinPrice()
      • setMinPrice

        public BuyItem setMinPrice​(int itemMinPrice)
      • setMinPrice

        public BuyItem setMinPrice​(java.util.function.Supplier<java.lang.Integer> itemMinPrice)
      • getPrice

        public int getPrice()
      • setPrice

        public BuyItem setPrice​(int itemPrice)
      • setPrice

        public BuyItem setPrice​(java.util.function.Supplier<java.lang.Integer> itemPrice)
      • getPriceCap

        public int getPriceCap()
      • setPriceCap

        public BuyItem setPriceCap​(int itemPriceCap)
      • setPriceCap

        public BuyItem setPriceCap​(java.util.function.Supplier<java.lang.Integer> itemPriceCap)
      • getIncreasePercentage

        public int getIncreasePercentage()
      • setIncreasePercentage

        public BuyItem setIncreasePercentage​(int itemIncreasePercentage)
      • setIncreasePercentage

        public BuyItem setIncreasePercentage​(java.util.function.Supplier<java.lang.Integer> itemIncreasePercentage)
      • getFixedIncrease

        public int getFixedIncrease()
      • setFixedIncrease

        public BuyItem setFixedIncrease​(int fixedIncrease)
      • setFixedIncrease

        public BuyItem setFixedIncrease​(java.util.function.Supplier<java.lang.Integer> fixedIncrease)
      • getWaitTimeMillis

        public long getWaitTimeMillis()
      • setWaitTimeMillis

        public BuyItem setWaitTimeMillis​(long millis)
      • setWaitTimeMillis

        public BuyItem setWaitTimeMillis​(java.util.function.Supplier<java.lang.Long> millis)
      • setBuyUpTo

        public BuyItem setBuyUpTo​(boolean buyUpTo)
      • getItemID

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public int getItemID()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemID

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public BuyItem setItemID​(int itemID)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getNotedItemID

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public int getNotedItemID()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemQuantity

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public BuyItem setItemQuantity​(int itemQuantity)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getItemPrice

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public int getItemPrice()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemPrice

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public BuyItem setItemPrice​(int itemPrice)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemPrice

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public BuyItem setItemPrice​(java.util.function.Supplier<java.lang.Integer> itemPrice)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getItemPriceCap

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public int getItemPriceCap()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemPriceCap

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public BuyItem setItemPriceCap​(int itemPriceCap)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemPriceCap

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public BuyItem setItemPriceCap​(java.util.function.Supplier<java.lang.Integer> itemPriceCap)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getItemIncreasePercentage

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public int getItemIncreasePercentage()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemIncreasePercentage

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public BuyItem setItemIncreasePercentage​(int itemIncreasePercentage)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemIncreasePercentage

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public BuyItem setItemIncreasePercentage​(java.util.function.Supplier<java.lang.Integer> itemIncreasePercentage)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getItemFixedIncrease

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public int getItemFixedIncrease()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getItemWaitTimeMillis

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public long getItemWaitTimeMillis()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemWaitTimeMillis

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public BuyItem setItemWaitTimeMillis​(long millis)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemWaitTimeMillis

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public BuyItem setItemWaitTimeMillis​(java.util.function.Supplier<java.lang.Long> millis)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getQuantity

        public int getQuantity()
      • isBuyUpTo

        public boolean isBuyUpTo()