Package net.minecraft.server
Record Class ServerLinks
java.lang.Object
java.lang.Record
net.minecraft.server.ServerLinks
- Record Components:
- entries-
- Mappings:
- Namespace - Name - named - net/minecraft/server/ServerLinks- intermediary - net/minecraft/class_9782- official - aln- named - entries- intermediary - comp_2826- official - d
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumstatic final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ServerLinksprivate final List<ServerLinks.Entry> The field for theentriesrecord component.static final PacketCodec<ByteBuf, List<ServerLinks.StringifiedEntry>> static final PacketCodec<ByteBuf, com.mojang.datafixers.util.Either<ServerLinks.Known, Text>> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.getEntryFor(ServerLinks.Known known) getLinks()final inthashCode()Returns a hash code value for this object.booleanisEmpty()final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
entriesThe field for theentriesrecord component.
- 
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- Laln;a:Laln;
 
- 
TYPE_CODECpublic static final PacketCodec<ByteBuf,com.mojang.datafixers.util.Either<ServerLinks.Known, TYPE_CODECText>> - 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- Laln;b:Lyn;
 
- 
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- Laln;c:Lyn;
 
 
- 
- 
Constructor Details- 
ServerLinks
 
- 
- 
Method Details- 
isEmptypublic 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- Laln;a()Z
 
- 
getEntryFor- 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- Laln;a(Laln$b;)Ljava/util/Optional;
 
- 
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- Laln;b()Ljava/util/List;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
entriesReturns the value of theentriesrecord component.- Returns:
- the value of the entriesrecord component
 
 
-