Record Class PlayersRpcDispatcher.RpcEntry
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.PlayersRpcDispatcher.RpcEntry
- Record Components:
player-message-
- Enclosing class:
PlayersRpcDispatcher
public static record PlayersRpcDispatcher.RpcEntry(RpcPlayer player, 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 playerintermediary comp_4746official bnamed messageintermediary comp_4747official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<PlayersRpcDispatcher.RpcEntry> private final Optional<RpcKickReason> The field for themessagerecord component.private final RpcPlayerThe field for theplayerrecord 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.player()Returns the value of theplayerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
player
The field for theplayerrecord 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/MapCodec;intermediary field_62411Lnet/minecraft/class_11857$class_11858;field_62411:Lcom/mojang/serialization/MapCodec;official aLavj$a;a:Lcom/mojang/serialization/MapCodec;
-
-
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). -
player
Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-