Package net.minecraft.server
Record Class PlayerAdvancements.Data
java.lang.Object
java.lang.Record
net.minecraft.server.PlayerAdvancements.Data
- Enclosing class:
- PlayerAdvancements
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayerAdvancements.Data>private final Map<ResourceLocation,AdvancementProgress> The field for themaprecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aDatarecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidforEach(BiConsumer<ResourceLocation, AdvancementProgress> p_300973_) 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- 
mapThe field for themaprecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
DataData(Map<ResourceLocation, AdvancementProgress> map) Creates an instance of aDatarecord class.- Parameters:
- map- the value for the- maprecord component
 
 
- 
- 
Method Details- 
forEach
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
mapReturns the value of themaprecord component.- Returns:
- the value of the maprecord component
 
 
-