Record Class MarkerNbtRequestMessage
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.client.MarkerNbtRequestMessage
- All Implemented Interfaces:
net.minestom.server.network.packet.client.ClientPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<MarkerNbtRequestMessage> -
Constructor Summary
ConstructorsConstructorDescriptionMarkerNbtRequestMessage(UUID uuid, int reason) Creates an instance of aMarkerNbtRequestMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intreason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Field Details
-
TYPE
-
-
Constructor Details
-
MarkerNbtRequestMessage
Creates an instance of aMarkerNbtRequestMessagerecord class.- Parameters:
uuid- the value for theuuidrecord componentreason- the value for thereasonrecord 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. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
reason
public int reason()Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-