Package net.minecraft.server
Record Class ServerMetadata.Players
java.lang.Object
java.lang.Record
net.minecraft.server.ServerMetadata.Players
- Record Components:
max
-online
-sample
-
- Enclosing class:
ServerMetadata
public static record ServerMetadata.Players(int max, int online, List<com.mojang.authlib.GameProfile> sample)
extends Record
- Mappings:
Namespace Name official adz$b
intermediary net/minecraft/class_2926$class_2927
named net/minecraft/server/ServerMetadata$Players
official b
intermediary comp_1279
named max
official c
intermediary comp_1280
named online
official d
intermediary comp_1281
named sample
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ServerMetadata.Players>
private static final com.mojang.serialization.Codec<com.mojang.authlib.GameProfile>
private final int
The field for themax
record component.private final int
The field for theonline
record component.private final List<com.mojang.authlib.GameProfile>
The field for thesample
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
max()
Returns the value of themax
record component.int
online()
Returns the value of theonline
record component.List<com.mojang.authlib.GameProfile>
sample()
Returns the value of thesample
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
max
private final int maxThe field for themax
record component. -
online
private final int onlineThe field for theonline
record component. -
sample
The field for thesample
record component. -
GAME_PROFILE_CODEC
private static final com.mojang.serialization.Codec<com.mojang.authlib.GameProfile> GAME_PROFILE_CODEC- Mappings:
Namespace Name Mixin selector official e
Ladz$b;e:Lcom/mojang/serialization/Codec;
intermediary field_42541
Lnet/minecraft/class_2926$class_2927;field_42541:Lcom/mojang/serialization/Codec;
named GAME_PROFILE_CODEC
Lnet/minecraft/server/ServerMetadata$Players;GAME_PROFILE_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ladz$b;a:Lcom/mojang/serialization/Codec;
intermediary field_42540
Lnet/minecraft/class_2926$class_2927;field_42540:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/server/ServerMetadata$Players;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Players
- Mappings:
Namespace Name Mixin selector official <init>
Ladz$b;<init>(IILjava/util/List;)V
intermediary <init>
Lnet/minecraft/class_2926$class_2927;<init>(IILjava/util/List;)V
named <init>
Lnet/minecraft/server/ServerMetadata$Players;<init>(IILjava/util/List;)V
-
-
Method Details
-
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. -
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. -
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 '=='. -
max
public int max()Returns the value of themax
record component.- Returns:
- the value of the
max
record component
-
online
public int online()Returns the value of theonline
record component.- Returns:
- the value of the
online
record component
-
sample
Returns the value of thesample
record component.- Returns:
- the value of the
sample
record component
-