Record Class PlayerBansRpcDispatcher.ConfigEntry
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.PlayerBansRpcDispatcher.ConfigEntry
- Record Components:
player-reason-source-expires-
- Enclosing class:
PlayerBansRpcDispatcher
private static record PlayerBansRpcDispatcher.ConfigEntry(PlayerConfigEntry player, @Nullable String reason, String source, Optional<Instant> expires)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$ConfigEntryintermediary net/minecraft/class_11835$class_11836official auw$anamed playerintermediary comp_4703official anamed reasonintermediary comp_4704official bnamed sourceintermediary comp_4705official cnamed expiresintermediary comp_4706official d
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigEntry(PlayerConfigEntry playerConfigEntry, @Nullable String string, String string2, Optional<Instant> optional) -
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.(package private) static PlayerBansRpcDispatcher.ConfigEntryof(BannedPlayerEntry entry) player()Returns the value of theplayerrecord component.reason()Returns the value of thereasonrecord component.source()Returns the value of thesourcerecord component.(package private) BannedPlayerEntryfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ConfigEntry
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$ConfigEntry;of(Lnet/minecraft/server/BannedPlayerEntry;)Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$ConfigEntry;intermediary method_73856Lnet/minecraft/class_11835$class_11836;method_73856(Lnet/minecraft/class_3336;)Lnet/minecraft/class_11835$class_11836;official aLauw$a;a(Lbbl;)Lauw$a;
-
toBannedPlayerEntry
BannedPlayerEntry toBannedPlayerEntry()- Mappings:
Namespace Name Mixin selector named toBannedPlayerEntryLnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$ConfigEntry;toBannedPlayerEntry()Lnet/minecraft/server/BannedPlayerEntry;intermediary method_73857Lnet/minecraft/class_11835$class_11836;method_73857()Lnet/minecraft/class_3336;official eLauw$a;e()Lbbl;
-
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
-