Record Class ServerStatus.Players
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.status.ServerStatus.Players
- Enclosing class:
ServerStatus
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ServerStatus.Players> private final intThe field for themaxrecord component.private final intThe field for theonlinerecord component.The field for thesamplerecord component. -
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.intmax()Returns the value of themaxrecord component.intonline()Returns the value of theonlinerecord component.sample()Returns the value of thesamplerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
max
private final int maxThe field for themaxrecord component. -
online
private final int onlineThe field for theonlinerecord component. -
sample
-
CODEC
-
-
Constructor Details
-
Players
-
-
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. -
max
public int max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
online
public int online()Returns the value of theonlinerecord component.- Returns:
- the value of the
onlinerecord component
-
sample
-