类 FormerName

java.lang.Object
org.to2mbn.jmccc.mojangapi.FormerName

public class FormerName extends Object
Describes one of a player's former names.
  • 构造器详细资料

    • FormerName

      public FormerName(String name, Long changedToAt)
  • 方法详细资料

    • getName

      public String getName()
      Returns the username.
      返回:
      the username, cannot be null
    • getChangedToAt

      public Long getChangedToAt()
      Returns when the player changed its name to this, or null if the time is unknown (for example, this is the player's first username).
      返回:
      when the player changed its name to this, can be null
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object