Record Class UpdateEnabledFeaturesPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.configuration.UpdateEnabledFeaturesPacket
- All Implemented Interfaces:
SendablePacket, ServerPacket, ServerPacket.Configuration
public record UpdateEnabledFeaturesPacket(List<String> features)
extends Record
implements ServerPacket.Configuration
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final NetworkBuffer.Type<UpdateEnabledFeaturesPacket> -
Constructor Summary
ConstructorsConstructorDescriptionUpdateEnabledFeaturesPacket(List<String> features) Creates an instance of aUpdateEnabledFeaturesPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MAX_FEATURES
public static final int MAX_FEATURES- See Also:
-
SERIALIZER
-
-
Constructor Details
-
UpdateEnabledFeaturesPacket
-
-
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). -
features
-