Package net.minecraft.server
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 alj$a
named type
intermediary comp_2827
official a
named link
intermediary comp_2828
official b
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEntry
(com.mojang.datafixers.util.Either<ServerLinks.Known, Text> either, URI uRI) -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerLinks.Entry
create
(ServerLinks.Known known, URI link) static ServerLinks.Entry
final boolean
Indicates whether some other object is "equal to" this one.getText()
final int
hashCode()
Returns a hash code value for this object.link()
Returns the value of thelink
record component.final String
toString()
Returns a string representation of this record class.com.mojang.datafixers.util.Either
<ServerLinks.Known, Text> type()
Returns the value of thetype
record component.
-
Field Details
-
Constructor Details
-
Entry
-
-
Method Details
-
create
- 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
Lalj$a;a(Lalj$b;Ljava/net/URI;)Lalj$a;
-
create
- 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
Lalj$a;a(Lwz;Ljava/net/URI;)Lalj$a;
-
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
Lalj$a;a()Lwz;
-
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)
. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
link
Returns the value of thelink
record component.- Returns:
- the value of the
link
record component
-