Record Class BedrockServerStatus.Status
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.servers.BedrockServerStatus.Status
- Enclosing class:
BedrockServerStatus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thelatencyMillisrecord component.intReturns the value of themaxPlayersrecord component.motd()Returns the value of themotdrecord component.intplayers()Returns the value of theplayersrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Status
Creates an instance of aStatusrecord class.- Parameters:
players- the value for theplayersrecord componentmaxPlayers- the value for themaxPlayersrecord componentlatencyMillis- the value for thelatencyMillisrecord componentmotd- the value for themotdrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
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. -
players
public int players()Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
maxPlayers
public int maxPlayers()Returns the value of themaxPlayersrecord component.- Returns:
- the value of the
maxPlayersrecord component
-
latencyMillis
public long latencyMillis()Returns the value of thelatencyMillisrecord component.- Returns:
- the value of the
latencyMillisrecord component
-
motd
Returns the value of themotdrecord component.- Returns:
- the value of the
motdrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-