Record Class IpBansRpcDispatcher.IpBanInfo
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.IpBansRpcDispatcher.IpBanInfo
- Record Components:
ipAddress-reason-source-expires-
- Enclosing class:
IpBansRpcDispatcher
private static record IpBansRpcDispatcher.IpBanInfo(String ipAddress, @Nullable String reason, String source, Optional<Instant> expires)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanInfointermediary net/minecraft/class_11849$class_11851official avf$bnamed ipAddressintermediary comp_4729official anamed reasonintermediary comp_4730official bnamed sourceintermediary comp_4731official cnamed expiresintermediary comp_4732official d
-
Field Summary
Fields -
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.(package private) static IpBansRpcDispatcher.IpBanInfofromBannedIpEntry(BannedIpEntry bannedIpEntry) 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.(package private) BannedIpEntryfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
IpBanInfo
-
-
Method Details
-
fromBannedIpEntry
- Mappings:
Namespace Name Mixin selector named fromBannedIpEntryLnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanInfo;fromBannedIpEntry(Lnet/minecraft/server/BannedIpEntry;)Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanInfo;intermediary method_73901Lnet/minecraft/class_11849$class_11851;method_73901(Lnet/minecraft/class_3320;)Lnet/minecraft/class_11849$class_11851;official aLavf$b;a(Lbba;)Lavf$b;
-
toBannedIpEntry
BannedIpEntry toBannedIpEntry()- Mappings:
Namespace Name Mixin selector named toBannedIpEntryLnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanInfo;toBannedIpEntry()Lnet/minecraft/server/BannedIpEntry;intermediary method_73902Lnet/minecraft/class_11849$class_11851;method_73902()Lnet/minecraft/class_3320;official eLavf$b;e()Lbba;
-
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
-