Record Class ServerLinks.Entry

java.lang.Object
java.lang.Record
net.minecraft.server.ServerLinks.Entry
Record Components:
type -
link -
Enclosing class:
ServerLinks

public static record ServerLinks.Entry(com.mojang.datafixers.util.Either<ServerLinks.Known,Text> type, URI link) extends Record
Mappings:
Namespace Name
named net/minecraft/server/ServerLinks$Entry
intermediary net/minecraft/class_9782$class_9783
official amr$a
named type
intermediary comp_2827
official a
named link
intermediary comp_2828
official b
  • Field Details

    • type

      private final com.mojang.datafixers.util.Either<ServerLinks.Known,Text> type
      The field for the type record component.
  • Constructor Details

  • Method Details

    • create

      public static ServerLinks.Entry create(ServerLinks.Known known, URI link)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/server/ServerLinks$Entry;create(Lnet/minecraft/server/ServerLinks$Known;Ljava/net/URI;)Lnet/minecraft/server/ServerLinks$Entry;
      intermediary method_60663 Lnet/minecraft/class_9782$class_9783;method_60663(Lnet/minecraft/class_9782$class_9784;Ljava/net/URI;)Lnet/minecraft/class_9782$class_9783;
      official a Lamr$a;a(Lamr$b;Ljava/net/URI;)Lamr$a;
    • create

      public static ServerLinks.Entry create(Text name, URI link)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/server/ServerLinks$Entry;create(Lnet/minecraft/text/Text;Ljava/net/URI;)Lnet/minecraft/server/ServerLinks$Entry;
      intermediary method_60665 Lnet/minecraft/class_9782$class_9783;method_60665(Lnet/minecraft/class_2561;Ljava/net/URI;)Lnet/minecraft/class_9782$class_9783;
      official a Lamr$a;a(Lxv;Ljava/net/URI;)Lamr$a;
    • getText

      public Text getText()
      Mappings:
      Namespace Name Mixin selector
      named getText Lnet/minecraft/server/ServerLinks$Entry;getText()Lnet/minecraft/text/Text;
      intermediary method_60662 Lnet/minecraft/class_9782$class_9783;method_60662()Lnet/minecraft/class_2561;
      official a Lamr$a;a()Lxv;
    • 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.
    • type

      public com.mojang.datafixers.util.Either<ServerLinks.Known,Text> type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • link

      public URI link()
      Returns the value of the link record component.
      Returns:
      the value of the link record component