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/ServerLinksintermediary net/minecraft/class_9782official aljnamed entriesintermediary comp_2826official d
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumstatic final record -
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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
-
entries
The field for theentriesrecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/server/ServerLinks;EMPTY:Lnet/minecraft/server/ServerLinks;intermediary field_51977Lnet/minecraft/class_9782;field_51977:Lnet/minecraft/class_9782;official aLalj;a:Lalj;
-
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;TYPE_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_52203Lnet/minecraft/class_9782;field_52203:Lnet/minecraft/class_9139;official bLalj;b:Lyx;
-
LIST_CODEC
- Mappings:
Namespace Name Mixin selector named LIST_CODECLnet/minecraft/server/ServerLinks;LIST_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_52204Lnet/minecraft/class_9782;field_52204:Lnet/minecraft/class_9139;official cLalj;c:Lyx;
-
-
Constructor Details
-
ServerLinks
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmptyLnet/minecraft/server/ServerLinks;isEmpty()Zintermediary method_60657Lnet/minecraft/class_9782;method_60657()Zofficial aLalj;a()Z
-
getEntryFor
- Mappings:
Namespace Name Mixin selector named getEntryForLnet/minecraft/server/ServerLinks;getEntryFor(Lnet/minecraft/server/ServerLinks$Known;)Ljava/util/Optional;intermediary method_60658Lnet/minecraft/class_9782;method_60658(Lnet/minecraft/class_9782$class_9784;)Ljava/util/Optional;official aLalj;a(Lalj$b;)Ljava/util/Optional;
-
getLinks
- Mappings:
Namespace Name Mixin selector named getLinksLnet/minecraft/server/ServerLinks;getLinks()Ljava/util/List;intermediary method_60938Lnet/minecraft/class_9782;method_60938()Ljava/util/List;official bLalj;b()Ljava/util/List;
-
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). -
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-