Class UsernameItem

java.lang.Object
de.saibotk.jmaw.UsernameItem

public class UsernameItem extends Object
This is the response of the Mojang API containing a username and a timestamp, describing when a player started using the name, for a given uuid. Returned in a List by MojangAPI.getUsernameHistory(String).
Since:
1.0
  • Constructor Details

    • UsernameItem

      public UsernameItem()
  • Method Details

    • getName

      public String getName()
      Returns the username.
      Returns:
      username.
      Since:
      1.0
    • getChangedToAt

      public Optional<Long> getChangedToAt()
      Returns the timestamp, when the user started using the name (in milliseconds).
      Returns:
      the timestamp.
      Since:
      1.0