Record Class ServerRpcDispatcher.RpcStatus

java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.ServerRpcDispatcher.RpcStatus
Record Components:
started -
players -
version -
Enclosing class:
ServerRpcDispatcher

public static record ServerRpcDispatcher.RpcStatus(boolean started, List<RpcPlayer> players, ServerMetadata.Version version) extends Record
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/dispatch/ServerRpcDispatcher$RpcStatus
intermediary net/minecraft/class_11861$class_11862
official avm$a
named started
intermediary comp_4748
official c
named players
intermediary comp_4749
official d
named version
intermediary comp_4750
official e
  • Field Details

    • started

      private final boolean started
      The field for the started record component.
    • players

      private final List<RpcPlayer> players
      The field for the players record component.
    • version

      private final ServerMetadata.Version version
      The field for the version record component.
    • CODEC

      public static final com.mojang.serialization.Codec<ServerRpcDispatcher.RpcStatus> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/server/dedicated/management/dispatch/ServerRpcDispatcher$RpcStatus;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_62414 Lnet/minecraft/class_11861$class_11862;field_62414:Lcom/mojang/serialization/Codec;
      official a Lavm$a;a:Lcom/mojang/serialization/Codec;
    • EMPTY

      public static final ServerRpcDispatcher.RpcStatus EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/server/dedicated/management/dispatch/ServerRpcDispatcher$RpcStatus;EMPTY:Lnet/minecraft/server/dedicated/management/dispatch/ServerRpcDispatcher$RpcStatus;
      intermediary field_62415 Lnet/minecraft/class_11861$class_11862;field_62415:Lnet/minecraft/class_11861$class_11862;
      official b Lavm$a;b:Lavm$a;
  • Constructor Details

  • 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.
    • started

      public boolean started()
      Returns the value of the started record component.
      Returns:
      the value of the started record component
    • players

      public List<RpcPlayer> players()
      Returns the value of the players record component.
      Returns:
      the value of the players record component
    • version

      public ServerMetadata.Version version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component