Record Class PlayerBansRpcDispatcher.RpcEntry
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.PlayerBansRpcDispatcher.RpcEntry
- Record Components:
player-reason-source-expires-
- Enclosing class:
PlayerBansRpcDispatcher
public static record PlayerBansRpcDispatcher.RpcEntry(RpcPlayer player, Optional<String> reason, Optional<String> source, Optional<Instant> expires)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntryintermediary net/minecraft/class_11835$class_11837official auw$bnamed playerintermediary comp_4707official bnamed reasonintermediary comp_4708official cnamed sourceintermediary comp_4709official dnamed expiresintermediary comp_4710official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<PlayerBansRpcDispatcher.RpcEntry> The field for theexpiresrecord component.private final RpcPlayerThe field for theplayerrecord component.The field for thereasonrecord component.The field for thesourcerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.expires()Returns the value of theexpiresrecord component.final inthashCode()Returns a hash code value for this object.of(BannedPlayerEntry entry) private static PlayerBansRpcDispatcher.RpcEntryplayer()Returns the value of theplayerrecord component.reason()Returns the value of thereasonrecord component.source()Returns the value of thesourcerecord component.toConfigEntry(PlayerConfigEntry player) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
player
The field for theplayerrecord component. -
reason
The field for thereasonrecord component. -
source
The field for thesourcerecord component. -
expires
The field for theexpiresrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_62394Lnet/minecraft/class_11835$class_11837;field_62394:Lcom/mojang/serialization/MapCodec;official aLauw$b;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
RpcEntry
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;of(Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$ConfigEntry;)Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;intermediary method_73858Lnet/minecraft/class_11835$class_11837;method_73858(Lnet/minecraft/class_11835$class_11836;)Lnet/minecraft/class_11835$class_11837;official aLauw$b;a(Lauw$a;)Lauw$b;
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;of(Lnet/minecraft/server/BannedPlayerEntry;)Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;intermediary method_73860Lnet/minecraft/class_11835$class_11837;method_73860(Lnet/minecraft/class_3336;)Lnet/minecraft/class_11835$class_11837;official aLauw$b;a(Lbbl;)Lauw$b;
-
toConfigEntry
- Mappings:
Namespace Name Mixin selector named toConfigEntryLnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;toConfigEntry(Lnet/minecraft/server/PlayerConfigEntry;)Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$ConfigEntry;intermediary method_73859Lnet/minecraft/class_11835$class_11837;method_73859(Lnet/minecraft/class_11560;)Lnet/minecraft/class_11835$class_11836;official aLauw$b;a(Lbbb;)Lauw$a;
-
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
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
expires
Returns the value of theexpiresrecord component.- Returns:
- the value of the
expiresrecord component
-