Package net.minecraft.advancement
Record Class PlayerAdvancementTracker.ProgressMap
java.lang.Object
java.lang.Record
net.minecraft.advancement.PlayerAdvancementTracker.ProgressMap
- Record Components:
map-
- Enclosing class:
PlayerAdvancementTracker
private static record PlayerAdvancementTracker.ProgressMap(Map<Identifier,AdvancementProgress> map)
extends Record
- Mappings:
Namespace Name named net/minecraft/advancement/PlayerAdvancementTracker$ProgressMapintermediary net/minecraft/class_2985$class_8780official akz$anamed mapintermediary comp_1921official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayerAdvancementTracker.ProgressMap> private final Map<Identifier, AdvancementProgress> The field for themaprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aProgressMaprecord 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
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/advancement/PlayerAdvancementTracker$ProgressMap;CODEC:Lcom/mojang/serialization/Codec;intermediary field_46075Lnet/minecraft/class_2985$class_8780;field_46075:Lcom/mojang/serialization/Codec;official aLakz$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ProgressMap
ProgressMap(Map<Identifier, AdvancementProgress> map) Creates an instance of aProgressMaprecord class.- Parameters:
map- the value for themaprecord component
-
-
Method Details
-
forEach
- Mappings:
Namespace Name Mixin selector named forEachLnet/minecraft/advancement/PlayerAdvancementTracker$ProgressMap;forEach(Ljava/util/function/BiConsumer;)Vintermediary method_53644Lnet/minecraft/class_2985$class_8780;method_53644(Ljava/util/function/BiConsumer;)Vofficial aLakz$a;a(Ljava/util/function/BiConsumer;)V
-
toString
Returns 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. -
hashCode
public 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. -
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
-