Record Class PlayersRpcDispatcher.RpcEntry
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.PlayersRpcDispatcher.RpcEntry
- Record Components:
players-message-
- Enclosing class:
PlayersRpcDispatcher
public static record PlayersRpcDispatcher.RpcEntry(List<RpcPlayer> players, Optional<RpcKickReason> message)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/dispatch/PlayersRpcDispatcher$RpcEntryintermediary net/minecraft/class_11857$class_11858official avj$anamed playersintermediary comp_4746official bnamed messageintermediary comp_4747official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayersRpcDispatcher.RpcEntry> private final Optional<RpcKickReason> The field for themessagerecord component.The field for theplayersrecord component. -
Constructor Summary
Constructors -
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.players()Returns the value of theplayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
players
The field for theplayersrecord component. -
message
The field for themessagerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/dispatch/PlayersRpcDispatcher$RpcEntry;CODEC:Lcom/mojang/serialization/Codec;intermediary field_62411Lnet/minecraft/class_11857$class_11858;field_62411:Lcom/mojang/serialization/Codec;official aLavj$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
RpcEntry
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
players
Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-