Record Class AdvancementsPacket.AdvancementProgress
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.AdvancementsPacket.AdvancementProgress
- Enclosing class:
AdvancementsPacket
public static record AdvancementsPacket.AdvancementProgress(List<AdvancementsPacket.Criteria> criteria)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkBuffer.Type<AdvancementsPacket.AdvancementProgress> -
Constructor Summary
ConstructorsConstructorDescriptionAdvancementProgress(List<AdvancementsPacket.Criteria> criteria) Creates an instance of aAdvancementProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncriteria()Returns the value of thecriteriarecord 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.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
AdvancementProgress
Creates an instance of aAdvancementProgressrecord class.- Parameters:
criteria- the value for thecriteriarecord 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). -
criteria
Returns the value of thecriteriarecord component.- Returns:
- the value of the
criteriarecord component
-