Record Class ServerLinksPacket.Entry
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.common.ServerLinksPacket.Entry
- Enclosing class:
ServerLinksPacket
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecustomTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theknownTyperecord component.link()Returns the value of thelinkrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NETWORK_TYPE
-
-
Constructor Details
-
Entry
public Entry(@Nullable @Nullable ServerLinksPacket.KnownLinkType knownType, @Nullable @Nullable Component customType, String link) Creates an instance of aEntryrecord class.- Parameters:
knownType- the value for theknownTyperecord componentcustomType- the value for thecustomTyperecord componentlink- the value for thelinkrecord component
-
Entry
-
Entry
-
-
Method Details
-
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). -
knownType
Returns the value of theknownTyperecord component.- Returns:
- the value of the
knownTyperecord component
-
customType
-
link
Returns the value of thelinkrecord component.- Returns:
- the value of the
linkrecord component
-