Record Class PlayerAdvancements.Data
java.lang.Object
java.lang.Record
net.minecraft.server.PlayerAdvancements.Data
- Enclosing class:
PlayerAdvancements
private static record PlayerAdvancements.Data(Map<Identifier, AdvancementProgress> map)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayerAdvancements.Data> private final Map<Identifier, AdvancementProgress> The field for themaprecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateData(Map<Identifier, AdvancementProgress> map) Creates an instance of aDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidforEach(BiConsumer<Identifier, AdvancementProgress> consumer) final inthashCode()Returns a hash code value for this object.map()Returns the value of themaprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
map
The field for themaprecord component. -
CODEC
-
-
Constructor Details
-
Data
Creates an instance of aDatarecord class.- Parameters:
map- the value for themaprecord component
-
-
Method Details
-
forEach
-
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). -
map
Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-