Record Class EnableMessage
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.server.EnableMessage
- All Implemented Interfaces:
net.minestom.server.network.packet.server.SendablePacket, net.minestom.server.network.packet.server.ServerPacket, net.minestom.server.network.packet.server.ServerPacket.Play
public record EnableMessage(boolean enable, int maxBufferSize, int blueprintVersion, int customDataOverrides, int rotationOverrides)
extends Record
implements 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.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> -
Constructor Summary
ConstructorsConstructorDescriptionEnableMessage(boolean enable, int maxBufferSize, int blueprintVersion, int customDataOverrides, int rotationOverrides) Creates an instance of aEnableMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theblueprintVersionrecord component.intReturns the value of thecustomDataOverridesrecord component.booleanenable()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.intReturns the value of themaxBufferSizerecord component.intReturns the value of therotationOverridesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
EnableMessage
public EnableMessage(boolean enable, int maxBufferSize, int blueprintVersion, int customDataOverrides, int rotationOverrides) Creates an instance of aEnableMessagerecord class.- Parameters:
enable- the value for theenablerecord componentmaxBufferSize- the value for themaxBufferSizerecord componentblueprintVersion- the value for theblueprintVersionrecord componentcustomDataOverrides- the value for thecustomDataOverridesrecord componentrotationOverrides- the value for therotationOverridesrecord component
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
enable
public boolean enable()Returns the value of theenablerecord component.- Returns:
- the value of the
enablerecord component
-
maxBufferSize
public int maxBufferSize()Returns the value of themaxBufferSizerecord component.- Returns:
- the value of the
maxBufferSizerecord component
-
blueprintVersion
public int blueprintVersion()Returns the value of theblueprintVersionrecord component.- Returns:
- the value of the
blueprintVersionrecord component
-
customDataOverrides
public int customDataOverrides()Returns the value of thecustomDataOverridesrecord component.- Returns:
- the value of the
customDataOverridesrecord component
-
rotationOverrides
public int rotationOverrides()Returns the value of therotationOverridesrecord component.- Returns:
- the value of the
rotationOverridesrecord component
-