Record Class ServerRpcDispatcher.RpcSystemMessage
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.ServerRpcDispatcher.RpcSystemMessage
- Record Components:
message-overlay-receivingPlayers-
- Enclosing class:
ServerRpcDispatcher
public static record ServerRpcDispatcher.RpcSystemMessage(RpcKickReason message, boolean overlay, Optional<List<RpcPlayer>> receivingPlayers)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/dispatch/ServerRpcDispatcher$RpcSystemMessageintermediary net/minecraft/class_11861$class_11863official avm$bnamed messageintermediary comp_4751official bnamed overlayintermediary comp_4752official cnamed receivingPlayersintermediary comp_4753official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ServerRpcDispatcher.RpcSystemMessage> private final RpcKickReasonThe field for themessagerecord component.private final booleanThe field for theoverlayrecord component.The field for thereceivingPlayersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRpcSystemMessage(RpcKickReason rpcKickReason, boolean bool, Optional<List<RpcPlayer>> optional) -
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.message()Returns the value of themessagerecord component.booleanoverlay()Returns the value of theoverlayrecord component.Returns the value of thereceivingPlayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
message
The field for themessagerecord component. -
overlay
private final boolean overlayThe field for theoverlayrecord component. -
receivingPlayers
The field for thereceivingPlayersrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/dispatch/ServerRpcDispatcher$RpcSystemMessage;CODEC:Lcom/mojang/serialization/Codec;intermediary field_62416Lnet/minecraft/class_11861$class_11863;field_62416:Lcom/mojang/serialization/Codec;official aLavm$b;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
RpcSystemMessage
public RpcSystemMessage(RpcKickReason rpcKickReason, boolean bool, Optional<List<RpcPlayer>> optional)
-
-
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 '=='. -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
overlay
public boolean overlay()Returns the value of theoverlayrecord component.- Returns:
- the value of the
overlayrecord component
-
receivingPlayers
Returns the value of thereceivingPlayersrecord component.- Returns:
- the value of the
receivingPlayersrecord component
-