Package net.minecraft.advancement
Record Class Advancement
java.lang.Object
java.lang.Record
net.minecraft.advancement.Advancement
- Record Components:
parent
-display
-rewards
-criteria
-requirements
-sendsTelemetryEvent
-name
-
public record Advancement(Optional<Identifier> parent, Optional<AdvancementDisplay> display, AdvancementRewards rewards, Map<String,AdvancementCriterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent, Optional<Text> name)
extends Record
- Mappings:
Namespace Name named net/minecraft/advancement/Advancement
intermediary net/minecraft/class_161
official ag
named parent
intermediary comp_1912
official c
named display
intermediary comp_1913
official d
named rewards
intermediary comp_1914
official e
named criteria
intermediary comp_1915
official f
named requirements
intermediary comp_1916
official g
named sendsTelemetryEvent
intermediary comp_1917
official h
named name
intermediary comp_1918
official i
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Advancement> private final Map
<String, AdvancementCriterion<?>> The field for thecriteria
record component.private static final com.mojang.serialization.Codec
<Map<String, AdvancementCriterion<?>>> private final Optional
<AdvancementDisplay> The field for thedisplay
record component.The field for thename
record component.static final PacketCodec
<RegistryByteBuf, Advancement> private final Optional
<Identifier> The field for theparent
record component.private final AdvancementRequirements
The field for therequirements
record component.private final AdvancementRewards
The field for therewards
record component.private final boolean
The field for thesendsTelemetryEvent
record component. -
Constructor Summary
ConstructorDescriptionAdvancement
(Optional<Identifier> parent, Optional<AdvancementDisplay> display, AdvancementRewards rewards, Map<String, AdvancementCriterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent) Advancement
(Optional<Identifier> optional, Optional<AdvancementDisplay> optional2, AdvancementRewards advancementRewards, Map<String, AdvancementCriterion<?>> map, AdvancementRequirements advancementRequirements, boolean bool, Optional<Text> optional3) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Text
createNameFromDisplay
(AdvancementDisplay display) criteria()
Returns the value of thecriteria
record component.display()
Returns the value of thedisplay
record component.final boolean
Indicates whether some other object is "equal to" this one.static Text
getNameFromIdentity
(AdvancementEntry identifiedAdvancement) final int
hashCode()
Returns a hash code value for this object.boolean
isRoot()
name()
Returns the value of thename
record component.parent()
Returns the value of theparent
record component.private static Advancement
read
(RegistryByteBuf buf) Returns the value of therequirements
record component.rewards()
Returns the value of therewards
record component.boolean
Returns the value of thesendsTelemetryEvent
record component.final String
toString()
Returns a string representation of this record class.private static com.mojang.serialization.DataResult
<Advancement> validate
(Advancement advancement) void
validate
(ErrorReporter errorReporter, RegistryEntryLookup.RegistryLookup lookup) private void
write
(RegistryByteBuf buf)
-
Field Details
-
parent
The field for theparent
record component. -
display
The field for thedisplay
record component. -
rewards
The field for therewards
record component. -
criteria
The field for thecriteria
record component. -
requirements
The field for therequirements
record component. -
sendsTelemetryEvent
private final boolean sendsTelemetryEventThe field for thesendsTelemetryEvent
record component. -
name
The field for thename
record component. -
CRITERIA_CODEC
private static final com.mojang.serialization.Codec<Map<String,AdvancementCriterion<?>>> CRITERIA_CODEC- Mappings:
Namespace Name Mixin selector named CRITERIA_CODEC
Lnet/minecraft/advancement/Advancement;CRITERIA_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_47180
Lnet/minecraft/class_161;field_47180:Lcom/mojang/serialization/Codec;
official j
Lag;j:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/advancement/Advancement;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_47179
Lnet/minecraft/class_161;field_47179:Lcom/mojang/serialization/Codec;
official a
Lag;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/advancement/Advancement;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_47996
Lnet/minecraft/class_161;field_47996:Lnet/minecraft/class_9139;
official b
Lag;b:Lzt;
-
-
Constructor Details
-
Advancement
public Advancement(Optional<Identifier> parent, Optional<AdvancementDisplay> display, AdvancementRewards rewards, Map<String, AdvancementCriterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/advancement/Advancement;<init>(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/advancement/AdvancementRewards;Ljava/util/Map;Lnet/minecraft/advancement/AdvancementRequirements;Z)V
intermediary <init>
Lnet/minecraft/class_161;<init>(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_170;Ljava/util/Map;Lnet/minecraft/class_8782;Z)V
official <init>
Lag;<init>(Ljava/util/Optional;Ljava/util/Optional;Lal;Ljava/util/Map;Lak;Z)V
-
Advancement
public Advancement(Optional<Identifier> optional, Optional<AdvancementDisplay> optional2, AdvancementRewards advancementRewards, Map<String, AdvancementCriterion<?>> map, AdvancementRequirements advancementRequirements, boolean bool, Optional<Text> optional3)
-
-
Method Details
-
validate
- Mappings:
Namespace Name Mixin selector named validate
Lnet/minecraft/advancement/Advancement;validate(Lnet/minecraft/advancement/Advancement;)Lcom/mojang/serialization/DataResult;
intermediary method_54910
Lnet/minecraft/class_161;method_54910(Lnet/minecraft/class_161;)Lcom/mojang/serialization/DataResult;
official a
Lag;a(Lag;)Lcom/mojang/serialization/DataResult;
-
createNameFromDisplay
- Mappings:
Namespace Name Mixin selector named createNameFromDisplay
Lnet/minecraft/advancement/Advancement;createNameFromDisplay(Lnet/minecraft/advancement/AdvancementDisplay;)Lnet/minecraft/text/Text;
intermediary method_53623
Lnet/minecraft/class_161;method_53623(Lnet/minecraft/class_185;)Lnet/minecraft/class_2561;
official a
Lag;a(Lat;)Lxv;
-
getNameFromIdentity
- Mappings:
Namespace Name Mixin selector named getNameFromIdentity
Lnet/minecraft/advancement/Advancement;getNameFromIdentity(Lnet/minecraft/advancement/AdvancementEntry;)Lnet/minecraft/text/Text;
intermediary method_53622
Lnet/minecraft/class_161;method_53622(Lnet/minecraft/class_8779;)Lnet/minecraft/class_2561;
official a
Lag;a(Lah;)Lxv;
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/advancement/Advancement;write(Lnet/minecraft/network/RegistryByteBuf;)V
intermediary method_53627
Lnet/minecraft/class_161;method_53627(Lnet/minecraft/class_9129;)V
official a
Lag;a(Lxg;)V
-
read
- Mappings:
Namespace Name Mixin selector named read
Lnet/minecraft/advancement/Advancement;read(Lnet/minecraft/network/RegistryByteBuf;)Lnet/minecraft/advancement/Advancement;
intermediary method_53632
Lnet/minecraft/class_161;method_53632(Lnet/minecraft/class_9129;)Lnet/minecraft/class_161;
official b
Lag;b(Lxg;)Lag;
-
isRoot
public boolean isRoot()- Mappings:
Namespace Name Mixin selector named isRoot
Lnet/minecraft/advancement/Advancement;isRoot()Z
intermediary method_53630
Lnet/minecraft/class_161;method_53630()Z
official a
Lag;a()Z
-
validate
- Mappings:
Namespace Name Mixin selector named validate
Lnet/minecraft/advancement/Advancement;validate(Lnet/minecraft/util/ErrorReporter;Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;)V
intermediary method_54912
Lnet/minecraft/class_161;method_54912(Lnet/minecraft/class_8942;Lnet/minecraft/class_7871$class_7872;)V
official a
Lag;a(Lbak;Ljr$a;)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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
parent
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-
display
Returns the value of thedisplay
record component.- Returns:
- the value of the
display
record component
-
rewards
Returns the value of therewards
record component.- Returns:
- the value of the
rewards
record component
-
criteria
Returns the value of thecriteria
record component.- Returns:
- the value of the
criteria
record component
-
requirements
Returns the value of therequirements
record component.- Returns:
- the value of the
requirements
record component
-
sendsTelemetryEvent
public boolean sendsTelemetryEvent()Returns the value of thesendsTelemetryEvent
record component.- Returns:
- the value of the
sendsTelemetryEvent
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-