Class RichPresence.Party

  • Enclosing interface:
    RichPresence

    public static class RichPresence.Party
    extends java.lang.Object
    Holds information on a player's party
    • Constructor Summary

      Constructors 
      Constructor Description
      Party​(java.lang.String id, long size, long max)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getId()
      ID for this party, relevant to the game.
      long getMax()
      The maximum size of this party, or 0 if unset
      long getSize()
      The current size of this party, or 0 if unset
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Party

        public Party​(java.lang.String id,
                     long size,
                     long max)
    • Method Detail

      • getId

        @Nullable
        public java.lang.String getId()
        ID for this party, relevant to the game.
        Returns:
        The ID for this party, or null if unset
      • getSize

        public long getSize()
        The current size of this party, or 0 if unset
        Returns:
        The current size of this party, or 0 if unset
      • getMax

        public long getMax()
        The maximum size of this party, or 0 if unset
        Returns:
        The maximum size of this party, or 0 if unset
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object