Record Class IpBansRpcDispatcher.IncomingRpcIpBanData
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.IpBansRpcDispatcher.IncomingRpcIpBanData
- Record Components:
player-ipAddress-reason-source-expires-
- Enclosing class:
IpBansRpcDispatcher
public static record IpBansRpcDispatcher.IncomingRpcIpBanData(Optional<RpcPlayer> player, Optional<String> ipAddress, Optional<String> reason, Optional<String> source, Optional<Instant> expires)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IncomingRpcIpBanDataintermediary net/minecraft/class_11849$class_11850official avf$anamed playerintermediary comp_4724official bnamed ipAddressintermediary comp_4725official cnamed reasonintermediary comp_4726official dnamed sourceintermediary comp_4727official enamed expiresintermediary comp_4728official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<IpBansRpcDispatcher.IncomingRpcIpBanData> The field for theexpiresrecord component.The field for theipAddressrecord component.The 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.Returns the value of theipAddressrecord component.player()Returns the value of theplayerrecord component.reason()Returns the value of thereasonrecord component.source()Returns the value of thesourcerecord component.(package private) IpBansRpcDispatcher.IpBanInfo(package private) @Nullable IpBansRpcDispatcher.IpBanInfofinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
player
The field for theplayerrecord component. -
ipAddress
The field for theipAddressrecord component. -
reason
The field for thereasonrecord component. -
source
The field for thesourcerecord component. -
expires
The field for theexpiresrecord component. -
CODEC
public static final com.mojang.serialization.MapCodec<IpBansRpcDispatcher.IncomingRpcIpBanData> CODEC- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IncomingRpcIpBanData;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_62406Lnet/minecraft/class_11849$class_11850;field_62406:Lcom/mojang/serialization/MapCodec;official aLavf$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
IncomingRpcIpBanData
-
-
Method Details
-
toIpBanInfoFromPlayer
- Mappings:
Namespace Name Mixin selector named toIpBanInfoFromPlayerLnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IncomingRpcIpBanData;toIpBanInfoFromPlayer(Lnet/minecraft/server/network/ServerPlayerEntity;)Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanInfo;intermediary method_73898Lnet/minecraft/class_11849$class_11850;method_73898(Lnet/minecraft/class_3222;)Lnet/minecraft/class_11849$class_11851;official aLavf$a;a(Lawy;)Lavf$b;
-
toIpBanInfoOrNull
- Mappings:
Namespace Name Mixin selector named toIpBanInfoOrNullLnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IncomingRpcIpBanData;toIpBanInfoOrNull()Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanInfo;intermediary method_73900Lnet/minecraft/class_11849$class_11850;method_73900()Lnet/minecraft/class_11849$class_11851;official fLavf$a;f()Lavf$b;
-
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
-
ipAddress
Returns the value of theipAddressrecord component.- Returns:
- the value of the
ipAddressrecord 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
-