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 Summary
ConstructorsConstructorDescriptionServer(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 aServerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivitiesrecord component.address()banner()Returns the value of thebannerrecord component.creator()Returns the value of thecreatorrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperienceIdrecord component.booleanfeatured()Returns the value of thefeaturedrecord component.booleanfinal inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.icon()Returns the value of theiconrecord component.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.news()Returns the value of thenewsrecord component.Returns the value of thenewsTitlerecord component.intport()Returns the value of theportrecord component.intrank()Returns the value of therankrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aServerrecord class.- Parameters:
id- the value for theidrecord componentexperienceId- the value for theexperienceIdrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentcreator- the value for thecreatorrecord componenthost- the value for thehostrecord componentport- the value for theportrecord componentfeatured- the value for thefeaturedrecord componentrank- the value for therankrecord componentnewsTitle- the value for thenewsTitlerecord componentnews- the value for thenewsrecord componenticon- the value for theiconrecord componentbanner- the value for thebannerrecord componentactivities- the value for theactivitiesrecord component
-
-
Method Details
-
hasAddress
public boolean hasAddress() -
address
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
experienceId
Returns the value of theexperienceIdrecord component.- Returns:
- the value of the
experienceIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
creator
Returns the value of thecreatorrecord component.- Returns:
- the value of the
creatorrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
featured
public boolean featured()Returns the value of thefeaturedrecord component.- Returns:
- the value of the
featuredrecord component
-
rank
public int rank()Returns the value of therankrecord component.- Returns:
- the value of the
rankrecord component
-
newsTitle
Returns the value of thenewsTitlerecord component.- Returns:
- the value of the
newsTitlerecord component
-
news
Returns the value of thenewsrecord component.- Returns:
- the value of the
newsrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
banner
Returns the value of thebannerrecord component.- Returns:
- the value of the
bannerrecord component
-
activities
Returns the value of theactivitiesrecord component.- Returns:
- the value of the
activitiesrecord component
-