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 alinamed entriesintermediary comp_2826official c
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<ByteBuf, ServerLinks> static final ServerLinksprivate final List<ServerLinks.Entry> The field for theentriesrecord component. -
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) 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 aLali;a:Lali;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/ServerLinks;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51978Lnet/minecraft/class_9782;field_51978:Lnet/minecraft/class_9139;official bLali;b:Lyw;
-
-
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 aLali;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 aLali;a(Lali$b;)Ljava/util/Optional;
-
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
-