Class SellItem


  • public class SellItem
    extends java.lang.Object
    This class represents a sellable item and allows for customization of its properties such as item ID, quantity, price, etc.
    • Constructor Detail

      • SellItem

        public SellItem()
      • SellItem

        public SellItem​(int id)
      • SellItem

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

      • getId

        public int getId()
      • setId

        public SellItem setId​(int id)
      • getNotedId

        public int getNotedId()
      • setQuantity

        public SellItem setQuantity​(int quantity)
      • getPrice

        public int getPrice()
      • setPrice

        public SellItem setPrice​(int itemPrice)
      • setPrice

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

        public int getPriceCap()
      • setPriceCap

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

        public SellItem setPriceCap​(int itemPriceCap)
      • getDecreasePercentage

        public int getDecreasePercentage()
      • setDecreasePercentage

        public SellItem setDecreasePercentage​(int itemDecreasePercentage)
      • setDecreasePercentage

        public SellItem setDecreasePercentage​(java.util.function.Supplier<java.lang.Integer> itemDecreasePercentage)
      • getFixedDecrease

        public int getFixedDecrease()
      • setFixedDecrease

        public SellItem setFixedDecrease​(int fixedDecrease)
      • setFixedDecrease

        public SellItem setFixedDecrease​(java.util.function.Supplier<java.lang.Integer> fixedDecrease)
      • getWaitTimeMillis

        public long getWaitTimeMillis()
      • setWaitTimeMillis

        public SellItem setWaitTimeMillis​(long millis)
      • setWaitTimeMillis

        public SellItem setWaitTimeMillis​(java.util.function.Supplier<java.lang.Long> millis)
      • 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 SellItem 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 SellItem 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 SellItem 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 SellItem 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 SellItem 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 SellItem setItemPriceCap​(java.util.function.Supplier<java.lang.Integer> itemPriceCap)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getItemDecreasePercentage

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

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

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

        @Deprecated(since="1.0.5",
                    forRemoval=true)
        public int getItemFixedDecrease()
        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 SellItem 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 SellItem 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()