Interface CosmeticItemOwnership


public interface CosmeticItemOwnership
Represents an ownership/purchase of a cosmetic item.
See Also:
  • Method Details

    • getItem

      CosmeticItem getItem()
      Gets the item that is owned by the player.
      Returns:
      The item represented by this ownership instance
    • getCause

      Gets the cause of the ownership.

      Items may be given for other reasons than a purchase to the player.

      Returns:
      The cause
    • getDate

      OffsetDateTime getDate()
      Gets the date of when the ownership was granted.
      Returns:
      The date
    • equals

      boolean equals(Object obj)
      Checks whether the properties of this ownership are equal to the given one.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare with
      Returns:
      true if the properties are equal, false otherwise
    • hashCode

      int hashCode()
      Returns the hash code of this ownership instance.

      It is guaranteed that two ownership instances with the same properties will return the same hash code.

      Overrides:
      hashCode in class Object
      Returns:
      The hash code
    • of

      Constructs a new ownership instance.

      Uses the current date as the date of when the ownership was granted.

      Parameters:
      item - The item to grant the ownership for
      cause - The cause of the ownership
      Returns:
      The ownership instance
      See Also:
    • of

      Constructs a new ownership instance.

      Uses the current date as the date of when the ownership was granted.

      Parameters:
      item - The item to grant the ownership for
      cause - The cause of the ownership
      date - The date of when the ownership was granted
      Returns:
      The ownership instance
      See Also: