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
named net/minecraft/server/ServerMetadata$Players
intermediary net/minecraft/class_2926$class_2927
official akw$b
named max
intermediary comp_1279
official b
named online
intermediary comp_1280
official c
named sample
intermediary comp_1281
official d
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<ServerMetadata.Players>
     
    private static final com.mojang.serialization.Codec<com.mojang.authlib.GameProfile>
     
    private final int
    The field for the max record component.
    private final int
    The field for the online record component.
    private final List<com.mojang.authlib.GameProfile>
    The field for the sample record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Players(int max, int online, List<com.mojang.authlib.GameProfile> list)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    max()
    Returns the value of the max record component.
    int
    Returns the value of the online record component.
    List<com.mojang.authlib.GameProfile>
    Returns the value of the sample record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • max

      private final int max
      The field for the max record component.
    • online

      private final int online
      The field for the online record component.
    • sample

      private final List<com.mojang.authlib.GameProfile> sample
      The field for the sample record component.
    • GAME_PROFILE_CODEC

      private static final com.mojang.serialization.Codec<com.mojang.authlib.GameProfile> GAME_PROFILE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named GAME_PROFILE_CODEC Lnet/minecraft/server/ServerMetadata$Players;GAME_PROFILE_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_42541 Lnet/minecraft/class_2926$class_2927;field_42541:Lcom/mojang/serialization/Codec;
      official e Lakw$b;e:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<ServerMetadata.Players> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/server/ServerMetadata$Players;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_42540 Lnet/minecraft/class_2926$class_2927;field_42540:Lcom/mojang/serialization/Codec;
      official a Lakw$b;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Players

      public Players(int max, int online, List<com.mojang.authlib.GameProfile> list)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/ServerMetadata$Players;<init>(IILjava/util/List;)V
      intermediary <init> Lnet/minecraft/class_2926$class_2927;<init>(IILjava/util/List;)V
      official <init> Lakw$b;<init>(IILjava/util/List;)V
  • Method Details

    • 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 object)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • max

      public int max()
      Returns the value of the max record component.
      Returns:
      the value of the max record component
    • online

      public int online()
      Returns the value of the online record component.
      Returns:
      the value of the online record component
    • sample

      public List<com.mojang.authlib.GameProfile> sample()
      Returns the value of the sample record component.
      Returns:
      the value of the sample record component