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
-
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
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
-