Record Class ServerLinks

java.lang.Object
java.lang.Record
net.minecraft.server.ServerLinks
Record Components:
entries -

public record ServerLinks(List<ServerLinks.Entry> entries) extends Record
Mappings:
Namespace Name
named net/minecraft/server/ServerLinks
intermediary net/minecraft/class_9782
official alj
named entries
intermediary comp_2826
official d
  • Field Details

    • entries

      private final List<ServerLinks.Entry> entries
      The field for the entries record component.
    • EMPTY

      public static final ServerLinks EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/server/ServerLinks;EMPTY:Lnet/minecraft/server/ServerLinks;
      intermediary field_51977 Lnet/minecraft/class_9782;field_51977:Lnet/minecraft/class_9782;
      official a Lalj;a:Lalj;
    • TYPE_CODEC

      public static final PacketCodec<ByteBuf,com.mojang.datafixers.util.Either<ServerLinks.Known,Text>> TYPE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named TYPE_CODEC Lnet/minecraft/server/ServerLinks;TYPE_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_52203 Lnet/minecraft/class_9782;field_52203:Lnet/minecraft/class_9139;
      official b Lalj;b:Lyx;
    • LIST_CODEC

      public static final PacketCodec<ByteBuf,List<ServerLinks.StringifiedEntry>> LIST_CODEC
      Mappings:
      Namespace Name Mixin selector
      named LIST_CODEC Lnet/minecraft/server/ServerLinks;LIST_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_52204 Lnet/minecraft/class_9782;field_52204:Lnet/minecraft/class_9139;
      official c Lalj;c:Lyx;
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/server/ServerLinks;isEmpty()Z
      intermediary method_60657 Lnet/minecraft/class_9782;method_60657()Z
      official a Lalj;a()Z
    • getEntryFor

      public Optional<ServerLinks.Entry> getEntryFor(ServerLinks.Known known)
      Mappings:
      Namespace Name Mixin selector
      named getEntryFor Lnet/minecraft/server/ServerLinks;getEntryFor(Lnet/minecraft/server/ServerLinks$Known;)Ljava/util/Optional;
      intermediary method_60658 Lnet/minecraft/class_9782;method_60658(Lnet/minecraft/class_9782$class_9784;)Ljava/util/Optional;
      official a Lalj;a(Lalj$b;)Ljava/util/Optional;
    • getLinks

      public List<ServerLinks.StringifiedEntry> getLinks()
      Mappings:
      Namespace Name Mixin selector
      named getLinks Lnet/minecraft/server/ServerLinks;getLinks()Ljava/util/List;
      intermediary method_60938 Lnet/minecraft/class_9782;method_60938()Ljava/util/List;
      official b Lalj;b()Ljava/util/List;
    • 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.
    • entries

      public List<ServerLinks.Entry> entries()
      Returns the value of the entries record component.
      Returns:
      the value of the entries record component