Record Class SetBufferMessage
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.client.SetBufferMessage
- All Implemented Interfaces:
net.minestom.server.network.packet.client.ClientPacket, net.minestom.server.network.packet.client.ClientPacket.Play, net.minestom.server.network.packet.Packet
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.network.packet.client.ClientPacket
net.minestom.server.network.packet.client.ClientPacket.Configuration, net.minestom.server.network.packet.client.ClientPacket.Handshake, net.minestom.server.network.packet.client.ClientPacket.Login, net.minestom.server.network.packet.client.ClientPacket.Play, net.minestom.server.network.packet.client.ClientPacket.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<SetBufferMessage> -
Constructor Summary
ConstructorsConstructorDescriptionSetBufferMessage(String worldKey, UUID bufferUuid, byte bufferType, net.minestom.server.network.NetworkBuffer bufferData) Creates an instance of aSetBufferMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minestom.server.network.NetworkBufferReturns the value of thebufferDatarecord component.byteReturns the value of thebufferTyperecord component.Returns the value of thebufferUuidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.worldKey()Returns the value of theworldKeyrecord component.
-
Field Details
-
TYPE
-
-
Constructor Details
-
SetBufferMessage
public SetBufferMessage(String worldKey, UUID bufferUuid, byte bufferType, net.minestom.server.network.NetworkBuffer bufferData) Creates an instance of aSetBufferMessagerecord class.- Parameters:
worldKey- the value for theworldKeyrecord componentbufferUuid- the value for thebufferUuidrecord componentbufferType- the value for thebufferTyperecord componentbufferData- the value for thebufferDatarecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
worldKey
Returns the value of theworldKeyrecord component.- Returns:
- the value of the
worldKeyrecord component
-
bufferUuid
Returns the value of thebufferUuidrecord component.- Returns:
- the value of the
bufferUuidrecord component
-
bufferType
public byte bufferType()Returns the value of thebufferTyperecord component.- Returns:
- the value of the
bufferTyperecord component
-
bufferData
public net.minestom.server.network.NetworkBuffer bufferData()Returns the value of thebufferDatarecord component.- Returns:
- the value of the
bufferDatarecord component
-