Record Class ServerLinksPacket.Entry
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.common.ServerLinksPacket.Entry
- Enclosing class:
ServerLinksPacket
public static record ServerLinksPacket.Entry(Either<ServerLinksPacket.KnownLinkType, Component> linkType, String link)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntry(@Nullable ServerLinksPacket.KnownLinkType knownType, @Nullable Component customType, String link) Deprecated, for removal: This API element is subject to removal in a future version.Entry(ServerLinksPacket.KnownLinkType type, String link) Entry(Either<ServerLinksPacket.KnownLinkType, Component> linkType, String link) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.UselinkType()instead.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Deprecated, for removal: This API element is subject to removal in a future version.UselinkType()instead.link()Returns the value of thelinkrecord component.linkType()Returns the value of thelinkTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NETWORK_TYPE
-
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
linkType- the value for thelinkTyperecord componentlink- the value for thelinkrecord component
-
Entry
@Deprecated(forRemoval=true) public Entry(@Nullable @Nullable ServerLinksPacket.KnownLinkType knownType, @Nullable @Nullable Component customType, String link) Deprecated, for removal: This API element is subject to removal in a future version.UseEntry(KnownLinkType, String)orEntry(Component, String)instead. -
Entry
-
Entry
-
-
Method Details
-
knownType
Deprecated, for removal: This API element is subject to removal in a future version.UselinkType()instead. -
customType
Deprecated, for removal: This API element is subject to removal in a future version.UselinkType()instead. -
toString
-
hashCode
-
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). -
linkType
Returns the value of thelinkTyperecord component.- Returns:
- the value of the
linkTyperecord component
-
link
Returns the value of thelinkrecord component.- Returns:
- the value of the
linkrecord component
-
Entry(KnownLinkType, String)orEntry(Component, String)instead.