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 aeintermediary net/minecraft/class_161named net/minecraft/advancement/Advancementofficial aintermediary comp_1912named parentofficial bintermediary comp_1913named displayofficial cintermediary comp_1914named rewardsofficial dintermediary comp_1915named criteriaofficial eintermediary comp_1916named requirementsofficial fintermediary comp_1917named sendsTelemetryEventofficial gintermediary comp_1918named name
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,AdvancementCriterion<?>> The field for thecriteriarecord component.private final Optional<AdvancementDisplay>The field for thedisplayrecord component.The field for thenamerecord component.private final Optional<Identifier>The field for theparentrecord component.private final class_8782The field for therequirementsrecord component.private final AdvancementRewardsThe field for therewardsrecord component.private final booleanThe field for thesendsTelemetryEventrecord 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 thecriteriarecord component.display()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static Textmethod_53622(class_8779 class_8779) private static Textmethod_53623(AdvancementDisplay advancementDisplay) static Advancementmethod_53626(JsonObject jsonObject, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) voidmethod_53627(PacketByteBuf packetByteBuf) booleanstatic Advancementmethod_53632(PacketByteBuf packetByteBuf) name()Returns the value of thenamerecord component.parent()Returns the value of theparentrecord component.Returns the value of therequirementsrecord component.rewards()Returns the value of therewardsrecord component.booleanReturns the value of thesendsTelemetryEventrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
parent
The field for theparentrecord component. -
display
The field for thedisplayrecord component. -
rewards
The field for therewardsrecord component. -
criteria
The field for thecriteriarecord component. -
requirements
The field for therequirementsrecord component. -
sendsTelemetryEvent
private final boolean sendsTelemetryEventThe field for thesendsTelemetryEventrecord component. -
name
The field for thenamerecord 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 aLae;a(Laq;)Lti;intermediary method_53623Lnet/minecraft/class_161;method_53623(Lnet/minecraft/class_185;)Lnet/minecraft/class_2561;named method_53623Lnet/minecraft/advancement/Advancement;method_53623(Lnet/minecraft/advancement/AdvancementDisplay;)Lnet/minecraft/text/Text;
-
method_53622
- Mappings:
Namespace Name Mixin selector official aLae;a(Laf;)Lti;intermediary method_53622Lnet/minecraft/class_161;method_53622(Lnet/minecraft/class_8779;)Lnet/minecraft/class_2561;named method_53622Lnet/minecraft/advancement/Advancement;method_53622(Lnet/minecraft/class_8779;)Lnet/minecraft/text/Text;
-
method_53621
- Mappings:
Namespace Name Mixin selector official aLae;a()Lcom/google/gson/JsonObject;intermediary method_53621Lnet/minecraft/class_161;method_53621()Lcom/google/gson/JsonObject;named method_53621Lnet/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 aLae;a(Lcom/google/gson/JsonObject;Lbg;)Lae;intermediary method_53626Lnet/minecraft/class_161;method_53626(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5257;)Lnet/minecraft/class_161;named method_53626Lnet/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 aLae;a(Lsl;)Vintermediary method_53627Lnet/minecraft/class_161;method_53627(Lnet/minecraft/class_2540;)Vnamed method_53627Lnet/minecraft/advancement/Advancement;method_53627(Lnet/minecraft/network/PacketByteBuf;)V
-
method_53632
- Mappings:
Namespace Name Mixin selector official bLae;b(Lsl;)Lae;intermediary method_53632Lnet/minecraft/class_161;method_53632(Lnet/minecraft/class_2540;)Lnet/minecraft/class_161;named method_53632Lnet/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 bLae;b()Zintermediary method_53630Lnet/minecraft/class_161;method_53630()Znamed method_53630Lnet/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 theparentrecord component.- Returns:
- the value of the
parentrecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
rewards
Returns the value of therewardsrecord component.- Returns:
- the value of the
rewardsrecord component
-
criteria
Returns the value of thecriteriarecord component.- Returns:
- the value of the
criteriarecord component
-
requirements
Returns the value of therequirementsrecord component.- Returns:
- the value of the
requirementsrecord component
-
sendsTelemetryEvent
public boolean sendsTelemetryEvent()Returns the value of thesendsTelemetryEventrecord component.- Returns:
- the value of the
sendsTelemetryEventrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-