Package net.minecraft.server
Record Class ServerLinks.Entry
java.lang.Object
java.lang.Record
net.minecraft.server.ServerLinks.Entry
- Record Components:
type-url-
- Enclosing class:
ServerLinks
public static record ServerLinks.Entry(com.mojang.datafixers.util.Either<ServerLinks.Known,Text> type, String url)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/ServerLinks$Entryintermediary net/minecraft/class_9782$class_9783official ali$anamed typeintermediary comp_2827official cnamed urlintermediary comp_2828official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<ByteBuf, ServerLinks.Entry> private final com.mojang.datafixers.util.Either<ServerLinks.Known, Text> The field for thetyperecord component.static final PacketCodec<ByteBuf, com.mojang.datafixers.util.Either<ServerLinks.Known, Text>> private final StringThe field for theurlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEntry(com.mojang.datafixers.util.Either<ServerLinks.Known, Text> either, String string) -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerLinks.Entrycreate(ServerLinks.Known known, String url) static ServerLinks.Entryfinal booleanIndicates whether some other object is "equal to" this one.getText()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.com.mojang.datafixers.util.Either<ServerLinks.Known, Text> type()Returns the value of thetyperecord component.url()Returns the value of theurlrecord component.
-
Field Details
-
type
The field for thetyperecord component. -
url
The field for theurlrecord component. -
TYPE_CODEC
public static final PacketCodec<ByteBuf,com.mojang.datafixers.util.Either<ServerLinks.Known, TYPE_CODECText>> - Mappings:
Namespace Name Mixin selector named TYPE_CODECLnet/minecraft/server/ServerLinks$Entry;TYPE_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51979Lnet/minecraft/class_9782$class_9783;field_51979:Lnet/minecraft/class_9139;official aLali$a;a:Lyw;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/ServerLinks$Entry;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51980Lnet/minecraft/class_9782$class_9783;field_51980:Lnet/minecraft/class_9139;official bLali$a;b:Lyw;
-
-
Constructor Details
-
Entry
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/server/ServerLinks$Entry;create(Lnet/minecraft/server/ServerLinks$Known;Ljava/lang/String;)Lnet/minecraft/server/ServerLinks$Entry;intermediary method_60663Lnet/minecraft/class_9782$class_9783;method_60663(Lnet/minecraft/class_9782$class_9784;Ljava/lang/String;)Lnet/minecraft/class_9782$class_9783;official aLali$a;a(Lali$b;Ljava/lang/String;)Lali$a;
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/server/ServerLinks$Entry;create(Lnet/minecraft/text/Text;Ljava/lang/String;)Lnet/minecraft/server/ServerLinks$Entry;intermediary method_60665Lnet/minecraft/class_9782$class_9783;method_60665(Lnet/minecraft/class_2561;Ljava/lang/String;)Lnet/minecraft/class_9782$class_9783;official aLali$a;a(Lwy;Ljava/lang/String;)Lali$a;
-
getText
- Mappings:
Namespace Name Mixin selector named getTextLnet/minecraft/server/ServerLinks$Entry;getText()Lnet/minecraft/text/Text;intermediary method_60662Lnet/minecraft/class_9782$class_9783;method_60662()Lnet/minecraft/class_2561;official aLali$a;a()Lwy;
-
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 thetyperecord component.- Returns:
- the value of the
typerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-