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$RpcStatusintermediary net/minecraft/class_11861$class_11862official avm$anamed startedintermediary comp_4748official cnamed playersintermediary comp_4749official dnamed versionintermediary comp_4750official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ServerRpcDispatcher.RpcStatus> static final ServerRpcDispatcher.RpcStatusThe field for theplayersrecord component.private final booleanThe field for thestartedrecord component.private final ServerMetadata.VersionThe field for theversionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRpcStatus(boolean bool, List<RpcPlayer> list, ServerMetadata.Version version) -
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.players()Returns the value of theplayersrecord component.booleanstarted()Returns the value of thestartedrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Field Details
-
started
private final boolean startedThe field for thestartedrecord component. -
players
The field for theplayersrecord component. -
version
The field for theversionrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/dispatch/ServerRpcDispatcher$RpcStatus;CODEC:Lcom/mojang/serialization/Codec;intermediary field_62414Lnet/minecraft/class_11861$class_11862;field_62414:Lcom/mojang/serialization/Codec;official aLavm$a;a:Lcom/mojang/serialization/Codec;
-
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/server/dedicated/management/dispatch/ServerRpcDispatcher$RpcStatus;EMPTY:Lnet/minecraft/server/dedicated/management/dispatch/ServerRpcDispatcher$RpcStatus;intermediary field_62415Lnet/minecraft/class_11861$class_11862;field_62415:Lnet/minecraft/class_11861$class_11862;official bLavm$a;b:Lavm$a;
-
-
Constructor Details
-
RpcStatus
-
-
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 '=='. -
started
public boolean started()Returns the value of thestartedrecord component.- Returns:
- the value of the
startedrecord component
-
players
Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-