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, class_8782 requirements, boolean sendsTelemetryEvent, Optional<Text> name)
extends Record
- Mappings:
Namespace Name official ae
intermediary net/minecraft/class_161
named net/minecraft/advancement/Advancement
official a
intermediary comp_1912
named parent
official b
intermediary comp_1913
named display
official c
intermediary comp_1914
named rewards
official d
intermediary comp_1915
named criteria
official e
intermediary comp_1916
named requirements
official f
intermediary comp_1917
named sendsTelemetryEvent
official g
intermediary comp_1918
named name
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,
AdvancementCriterion<?>> The field for thecriteria
record component.private final Optional<AdvancementDisplay>
The field for thedisplay
record component.The field for thename
record component.private final Optional<Identifier>
The field for theparent
record component.private final class_8782
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
ConstructorsConstructorDescriptionAdvancement
(Optional<Identifier> optional, Optional<AdvancementDisplay> optional2, AdvancementRewards advancementRewards, Map<String, AdvancementCriterion<?>> map, class_8782 class_8782, boolean bool) Advancement
(Optional<Identifier> optional, Optional<AdvancementDisplay> optional2, AdvancementRewards advancementRewards, Map<String, AdvancementCriterion<?>> map, class_8782 class_8782, boolean bool, Optional<Text> optional3) -
Method Summary
Modifier and TypeMethodDescriptioncriteria()
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.final int
hashCode()
Returns a hash code value for this object.static Text
method_53622
(class_8779 class_8779) private static Text
method_53623
(AdvancementDisplay advancementDisplay) static Advancement
method_53626
(JsonObject jsonObject, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) void
method_53627
(PacketByteBuf packetByteBuf) boolean
static Advancement
method_53632
(PacketByteBuf packetByteBuf) name()
Returns the value of thename
record component.parent()
Returns the value of theparent
record component.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.
-
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.
-
-
Constructor Details
-
Advancement
public Advancement(Optional<Identifier> optional, Optional<AdvancementDisplay> optional2, AdvancementRewards advancementRewards, Map<String, AdvancementCriterion<?>> map, class_8782 class_8782, boolean bool) -
Advancement
public Advancement(Optional<Identifier> optional, Optional<AdvancementDisplay> optional2, AdvancementRewards advancementRewards, Map<String, AdvancementCriterion<?>> map, class_8782 class_8782, boolean bool, Optional<Text> optional3)
-
-
Method Details
-
method_53623
- Mappings:
Namespace Name Mixin selector official a
Lae;a(Laq;)Lti;
intermediary method_53623
Lnet/minecraft/class_161;method_53623(Lnet/minecraft/class_185;)Lnet/minecraft/class_2561;
named method_53623
Lnet/minecraft/advancement/Advancement;method_53623(Lnet/minecraft/advancement/AdvancementDisplay;)Lnet/minecraft/text/Text;
-
method_53622
- Mappings:
Namespace Name Mixin selector official a
Lae;a(Laf;)Lti;
intermediary method_53622
Lnet/minecraft/class_161;method_53622(Lnet/minecraft/class_8779;)Lnet/minecraft/class_2561;
named method_53622
Lnet/minecraft/advancement/Advancement;method_53622(Lnet/minecraft/class_8779;)Lnet/minecraft/text/Text;
-
method_53621
- Mappings:
Namespace Name Mixin selector official a
Lae;a()Lcom/google/gson/JsonObject;
intermediary method_53621
Lnet/minecraft/class_161;method_53621()Lcom/google/gson/JsonObject;
named method_53621
Lnet/minecraft/advancement/Advancement;method_53621()Lcom/google/gson/JsonObject;
-
method_53626
public static Advancement method_53626(JsonObject jsonObject, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) - Mappings:
Namespace Name Mixin selector official a
Lae;a(Lcom/google/gson/JsonObject;Lbg;)Lae;
intermediary method_53626
Lnet/minecraft/class_161;method_53626(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5257;)Lnet/minecraft/class_161;
named method_53626
Lnet/minecraft/advancement/Advancement;method_53626(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/Advancement;
-
method_53627
- Mappings:
Namespace Name Mixin selector official a
Lae;a(Lsl;)V
intermediary method_53627
Lnet/minecraft/class_161;method_53627(Lnet/minecraft/class_2540;)V
named method_53627
Lnet/minecraft/advancement/Advancement;method_53627(Lnet/minecraft/network/PacketByteBuf;)V
-
method_53632
- Mappings:
Namespace Name Mixin selector official b
Lae;b(Lsl;)Lae;
intermediary method_53632
Lnet/minecraft/class_161;method_53632(Lnet/minecraft/class_2540;)Lnet/minecraft/class_161;
named method_53632
Lnet/minecraft/advancement/Advancement;method_53632(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/advancement/Advancement;
-
method_53630
public boolean method_53630()- Mappings:
Namespace Name Mixin selector official b
Lae;b()Z
intermediary method_53630
Lnet/minecraft/class_161;method_53630()Z
named method_53630
Lnet/minecraft/advancement/Advancement;method_53630()Z
-
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
-