Record Class IpBansRpcDispatcher.IpBanData
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.IpBansRpcDispatcher.IpBanData
- Record Components:
ipAddress-reason-source-expires-
- Enclosing class:
IpBansRpcDispatcher
public static record IpBansRpcDispatcher.IpBanData(String ipAddress, Optional<String> reason, Optional<String> source, Optional<Instant> expires)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanDataintermediary net/minecraft/class_11849$class_11852official avf$cnamed ipAddressintermediary comp_4733official bnamed reasonintermediary comp_4734official cnamed sourceintermediary comp_4735official dnamed expiresintermediary comp_4736official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<IpBansRpcDispatcher.IpBanData> The field for theexpiresrecord component.private final StringThe field for theipAddressrecord 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.fromBannedIpEntry(BannedIpEntry bannedIpEntry) private static IpBansRpcDispatcher.IpBanDatafromIpBanInfo(IpBansRpcDispatcher.IpBanInfo ipBanInfo) final inthashCode()Returns a hash code value for this object.Returns the value of theipAddressrecord component.reason()Returns the value of thereasonrecord component.source()Returns the value of thesourcerecord component.private IpBansRpcDispatcher.IpBanInfofinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
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
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanData;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_62407Lnet/minecraft/class_11849$class_11852;field_62407:Lcom/mojang/serialization/MapCodec;official aLavf$c;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
IpBanData
-
-
Method Details
-
fromIpBanInfo
- Mappings:
Namespace Name Mixin selector named fromIpBanInfoLnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanData;fromIpBanInfo(Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanInfo;)Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanData;intermediary method_73903Lnet/minecraft/class_11849$class_11852;method_73903(Lnet/minecraft/class_11849$class_11851;)Lnet/minecraft/class_11849$class_11852;official aLavf$c;a(Lavf$b;)Lavf$c;
-
fromBannedIpEntry
- Mappings:
Namespace Name Mixin selector named fromBannedIpEntryLnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanData;fromBannedIpEntry(Lnet/minecraft/server/BannedIpEntry;)Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanData;intermediary method_73904Lnet/minecraft/class_11849$class_11852;method_73904(Lnet/minecraft/class_3320;)Lnet/minecraft/class_11849$class_11852;official aLavf$c;a(Lbba;)Lavf$c;
-
toIpBanInfo
- Mappings:
Namespace Name Mixin selector named toIpBanInfoLnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanData;toIpBanInfo()Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanInfo;intermediary method_73906Lnet/minecraft/class_11849$class_11852;method_73906()Lnet/minecraft/class_11849$class_11851;official eLavf$c;e()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). -
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
-