Record Class UpdateAvailableDispatchSendsMessage
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.server.UpdateAvailableDispatchSendsMessage
- 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
public record UpdateAvailableDispatchSendsMessage(int add, int max)
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.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<UpdateAvailableDispatchSendsMessage> -
Constructor Summary
ConstructorsConstructorDescriptionUpdateAvailableDispatchSendsMessage(int add, int max) Creates an instance of aUpdateAvailableDispatchSendsMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintadd()Returns the value of theaddrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmax()Returns the value of themaxrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
public static final net.minestom.server.network.NetworkBuffer.Type<UpdateAvailableDispatchSendsMessage> TYPE
-
-
Constructor Details
-
UpdateAvailableDispatchSendsMessage
public UpdateAvailableDispatchSendsMessage(int add, int max) Creates an instance of aUpdateAvailableDispatchSendsMessagerecord class.- Parameters:
add- the value for theaddrecord componentmax- the value for themaxrecord 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. -
add
public int add()Returns the value of theaddrecord component.- Returns:
- the value of the
addrecord component
-
max
public int max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-