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 alj
named entries
intermediary comp_2826
official d
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static enum
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ServerLinks
private final List
<ServerLinks.Entry> The field for theentries
record component.static final PacketCodec
<ByteBuf, List<ServerLinks.StringifiedEntry>> static final PacketCodec
<ByteBuf, com.mojang.datafixers.util.Either<ServerLinks.Known, Text>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionentries()
Returns the value of theentries
record component.final boolean
Indicates whether some other object is "equal to" this one.getEntryFor
(ServerLinks.Known known) getLinks()
final int
hashCode()
Returns a hash code value for this object.boolean
isEmpty()
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
entries
The field for theentries
record 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
Lalj;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_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
Lalj;b:Lyx;
-
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
Lalj;c:Lyx;
-
-
Constructor Details
-
ServerLinks
-
-
Method Details
-
isEmpty
public 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
Lalj;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
Lalj;a(Lalj$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
Lalj;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 theentries
record component.- Returns:
- the value of the
entries
record component
-