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$IncomingRpcIpBanData
intermediary net/minecraft/class_11849$class_11850
official avf$a
named player
intermediary comp_4724
official b
named ipAddress
intermediary comp_4725
official c
named reason
intermediary comp_4726
official d
named source
intermediary comp_4727
official e
named expires
intermediary comp_4728
official f
  • Field Details

    • player

      private final Optional<RpcPlayer> player
      The field for the player record component.
    • ipAddress

      private final Optional<String> ipAddress
      The field for the ipAddress record component.
    • reason

      private final Optional<String> reason
      The field for the reason record component.
    • source

      private final Optional<String> source
      The field for the source record component.
    • expires

      private final Optional<Instant> expires
      The field for the expires record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<IpBansRpcDispatcher.IncomingRpcIpBanData> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IncomingRpcIpBanData;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_62406 Lnet/minecraft/class_11849$class_11850;field_62406:Lcom/mojang/serialization/MapCodec;
      official a Lavf$a;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • toIpBanInfoFromPlayer

      IpBansRpcDispatcher.IpBanInfo toIpBanInfoFromPlayer(ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named toIpBanInfoFromPlayer Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IncomingRpcIpBanData;toIpBanInfoFromPlayer(Lnet/minecraft/server/network/ServerPlayerEntity;)Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanInfo;
      intermediary method_73898 Lnet/minecraft/class_11849$class_11850;method_73898(Lnet/minecraft/class_3222;)Lnet/minecraft/class_11849$class_11851;
      official a Lavf$a;a(Lawy;)Lavf$b;
    • toIpBanInfoOrNull

      Mappings:
      Namespace Name Mixin selector
      named toIpBanInfoOrNull Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IncomingRpcIpBanData;toIpBanInfoOrNull()Lnet/minecraft/server/dedicated/management/dispatch/IpBansRpcDispatcher$IpBanInfo;
      intermediary method_73900 Lnet/minecraft/class_11849$class_11850;method_73900()Lnet/minecraft/class_11849$class_11851;
      official f Lavf$a;f()Lavf$b;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • player

      public Optional<RpcPlayer> player()
      Returns the value of the player record component.
      Returns:
      the value of the player record component
    • ipAddress

      public Optional<String> ipAddress()
      Returns the value of the ipAddress record component.
      Returns:
      the value of the ipAddress record component
    • reason

      public Optional<String> reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component
    • source

      public Optional<String> source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • expires

      public Optional<Instant> expires()
      Returns the value of the expires record component.
      Returns:
      the value of the expires record component