java.lang.Object
us.teaminceptus.novaconomy.api.economy.market.MarketItem
All Implemented Interfaces:
Comparable<MarketItem>

public final class MarketItem extends Object implements Comparable<MarketItem>
Represents an immutable custom Market Item on the Novaconomy Market
  • Constructor Details

    • MarketItem

      public MarketItem(@NotNull @NotNull Material item, @NotNull @NotNull MarketCategory category, double price)
      Constructs a new Market Item.
      Parameters:
      item - Material of the Market Item to be sold
      category - Category of the Market Item
      price - Price of the Market Item
  • Method Details

    • getItem

      @NotNull public @NotNull Material getItem()
      Gets the Material of this Market Item.
      Returns:
      Market Item Material
    • getCategory

      @NotNull public @NotNull MarketCategory getCategory()
      Gets the Market Category of this Market Item.
      Returns:
      Market Item Category
    • getPrice

      public double getPrice()
      Gets the price of this Market Item.
      Returns:
      Market Item Price
    • compareTo

      public int compareTo(@NotNull @NotNull MarketItem o)
      Specified by:
      compareTo in interface Comparable<MarketItem>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object