Record Class PlayerBansRpcDispatcher.RpcEntry

java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.PlayerBansRpcDispatcher.RpcEntry
Record Components:
player -
reason -
source -
expires -
Enclosing class:
PlayerBansRpcDispatcher

public static record PlayerBansRpcDispatcher.RpcEntry(RpcPlayer player, Optional<String> reason, Optional<String> source, Optional<Instant> expires) extends Record
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry
intermediary net/minecraft/class_11835$class_11837
official auw$b
named player
intermediary comp_4707
official b
named reason
intermediary comp_4708
official c
named source
intermediary comp_4709
official d
named expires
intermediary comp_4710
official e
  • Field Details

    • player

      private final RpcPlayer player
      The field for the player 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<PlayerBansRpcDispatcher.RpcEntry> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_62394 Lnet/minecraft/class_11835$class_11837;field_62394:Lcom/mojang/serialization/MapCodec;
      official a Lauw$b;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • of

      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;of(Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$ConfigEntry;)Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;
      intermediary method_73858 Lnet/minecraft/class_11835$class_11837;method_73858(Lnet/minecraft/class_11835$class_11836;)Lnet/minecraft/class_11835$class_11837;
      official a Lauw$b;a(Lauw$a;)Lauw$b;
    • of

      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;of(Lnet/minecraft/server/BannedPlayerEntry;)Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;
      intermediary method_73860 Lnet/minecraft/class_11835$class_11837;method_73860(Lnet/minecraft/class_3336;)Lnet/minecraft/class_11835$class_11837;
      official a Lauw$b;a(Lbbl;)Lauw$b;
    • toConfigEntry

      Mappings:
      Namespace Name Mixin selector
      named toConfigEntry Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$RpcEntry;toConfigEntry(Lnet/minecraft/server/PlayerConfigEntry;)Lnet/minecraft/server/dedicated/management/dispatch/PlayerBansRpcDispatcher$ConfigEntry;
      intermediary method_73859 Lnet/minecraft/class_11835$class_11837;method_73859(Lnet/minecraft/class_11560;)Lnet/minecraft/class_11835$class_11836;
      official a Lauw$b;a(Lbbb;)Lauw$a;
    • 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 RpcPlayer player()
      Returns the value of the player record component.
      Returns:
      the value of the player 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