Record Class BedrockServerCatalog.Server

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.servers.BedrockServerCatalog.Server
Enclosing class:
BedrockServerCatalog

public static record BedrockServerCatalog.Server(String id, String experienceId, String name, String description, String creator, String host, int port, boolean featured, int rank, String newsTitle, String news, String icon, String banner, List<BedrockServerCatalog.Activity> activities) extends Record
  • Constructor Details

    • Server

      public Server(String id, String experienceId, String name, String description, String creator, String host, int port, boolean featured, int rank, String newsTitle, String news, String icon, String banner, List<BedrockServerCatalog.Activity> activities)
      Creates an instance of a Server record class.
      Parameters:
      id - the value for the id record component
      experienceId - the value for the experienceId record component
      name - the value for the name record component
      description - the value for the description record component
      creator - the value for the creator record component
      host - the value for the host record component
      port - the value for the port record component
      featured - the value for the featured record component
      rank - the value for the rank record component
      newsTitle - the value for the newsTitle record component
      news - the value for the news record component
      icon - the value for the icon record component
      banner - the value for the banner record component
      activities - the value for the activities record component
  • Method Details

    • hasAddress

      public boolean hasAddress()
    • address

      public String address()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • experienceId

      public String experienceId()
      Returns the value of the experienceId record component.
      Returns:
      the value of the experienceId record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • creator

      public String creator()
      Returns the value of the creator record component.
      Returns:
      the value of the creator record component
    • host

      public String host()
      Returns the value of the host record component.
      Returns:
      the value of the host record component
    • port

      public int port()
      Returns the value of the port record component.
      Returns:
      the value of the port record component
    • featured

      public boolean featured()
      Returns the value of the featured record component.
      Returns:
      the value of the featured record component
    • rank

      public int rank()
      Returns the value of the rank record component.
      Returns:
      the value of the rank record component
    • newsTitle

      public String newsTitle()
      Returns the value of the newsTitle record component.
      Returns:
      the value of the newsTitle record component
    • news

      public String news()
      Returns the value of the news record component.
      Returns:
      the value of the news record component
    • icon

      public String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • banner

      public String banner()
      Returns the value of the banner record component.
      Returns:
      the value of the banner record component
    • activities

      public List<BedrockServerCatalog.Activity> activities()
      Returns the value of the activities record component.
      Returns:
      the value of the activities record component