Record Class ClientResourcePackStatusPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.common.ClientResourcePackStatusPacket
- All Implemented Interfaces:
ClientPacket
public record ClientResourcePackStatusPacket(UUID id, ResourcePackStatus status)
extends Record
implements ClientPacket
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientResourcePackStatusPacket(UUID id, ResourcePackStatus status) Creates an instance of aClientResourcePackStatusPacketrecord 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.id()Returns the value of theidrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientResourcePackStatusPacket
Creates an instance of aClientResourcePackStatusPacketrecord class.- Parameters:
id- the value for theidrecord componentstatus- the value for thestatusrecord 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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-