Class ItemSold

java.lang.Object
com.vk2gpz.autosell.object.ItemSold

public class ItemSold extends Object
This class represents an item sold in the shop. It contains the material type, amount sold, and total sell amount.
  • Constructor Details

    • ItemSold

      public ItemSold(String material)
      Constructor to initialize the ItemSold object with material type.
      Parameters:
      material - The material type of the item sold.
  • Method Details

    • getMaterial

      public String getMaterial()
      Gets the material type of the item sold.
      Returns:
      Gets the material type of the item sold.
    • setMaterial

      public void setMaterial(String material)
      Sets the material type of the item sold.
      Parameters:
      material - The material type of the item sold.
    • getAmountSold

      public int getAmountSold()
      Gets the amount of the item sold.
      Returns:
      Gets the amount of the item sold.
    • setAmountSold

      public void setAmountSold(int amountSold)
      Sets the amount of the item sold.
      Parameters:
      amountSold - The amount of the item sold.
    • getSellAmount

      public Double getSellAmount()
      Gets the total amount earned from selling the item.
      Returns:
      Gets the total amount earned from selling the item.
    • setSellAmount

      public void setSellAmount(Double sellAmount)
      Sets the total amount earned from selling the item.
      Parameters:
      sellAmount - The total amount earned from selling the item.