Record Class EnableMessage
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.server.EnableMessage
- All Implemented Interfaces:
net.minestom.server.network.packet.Packet, net.minestom.server.network.packet.server.SendablePacket, net.minestom.server.network.packet.server.ServerPacket, net.minestom.server.network.packet.server.ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.network.packet.server.ServerPacket
net.minestom.server.network.packet.server.ServerPacket.ComponentHolding, net.minestom.server.network.packet.server.ServerPacket.Configuration, net.minestom.server.network.packet.server.ServerPacket.Handshake, net.minestom.server.network.packet.server.ServerPacket.Login, net.minestom.server.network.packet.server.ServerPacket.Play, net.minestom.server.network.packet.server.ServerPacket.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<EnableMessage> Axiom API 10 ServerConfig v0; old pre-tunnel enable packets are intentionally retired. -
Constructor Summary
ConstructorsConstructorDescriptionEnableMessage(boolean enable, List<String> incomingChannels) Creates an instance of aEnableMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenable()Returns the value of theenablerecord 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 theincomingChannelsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
Axiom API 10 ServerConfig v0; old pre-tunnel enable packets are intentionally retired.
-
-
Constructor Details
-
EnableMessage
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enable
public boolean enable()Returns the value of theenablerecord component.- Returns:
- the value of the
enablerecord component
-
incomingChannels
-