Class AdvancementProgress

java.lang.Object
net.minecraft.advancement.AdvancementProgress
All Implemented Interfaces:
Comparable<AdvancementProgress>

public class AdvancementProgress extends Object implements Comparable<AdvancementProgress>
Mappings:
Namespace Name
named net/minecraft/advancement/AdvancementProgress
intermediary net/minecraft/class_167
official ai
  • Field Details

    • TIME_FORMATTER

      private static final DateTimeFormatter TIME_FORMATTER
      Mappings:
      Namespace Name Mixin selector
      named TIME_FORMATTER Lnet/minecraft/advancement/AdvancementProgress;TIME_FORMATTER:Ljava/time/format/DateTimeFormatter;
      intermediary field_46081 Lnet/minecraft/class_167;field_46081:Ljava/time/format/DateTimeFormatter;
      official b Lai;b:Ljava/time/format/DateTimeFormatter;
    • TIME_CODEC

      private static final com.mojang.serialization.Codec<Instant> TIME_CODEC
      Mappings:
      Namespace Name Mixin selector
      named TIME_CODEC Lnet/minecraft/advancement/AdvancementProgress;TIME_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46082 Lnet/minecraft/class_167;field_46082:Lcom/mojang/serialization/Codec;
      official c Lai;c:Lcom/mojang/serialization/Codec;
    • MAP_CODEC

      private static final com.mojang.serialization.Codec<Map<String,CriterionProgress>> MAP_CODEC
      Mappings:
      Namespace Name Mixin selector
      named MAP_CODEC Lnet/minecraft/advancement/AdvancementProgress;MAP_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46083 Lnet/minecraft/class_167;field_46083:Lcom/mojang/serialization/Codec;
      official d Lai;d:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<AdvancementProgress> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/advancement/AdvancementProgress;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46080 Lnet/minecraft/class_167;field_46080:Lcom/mojang/serialization/Codec;
      official a Lai;a:Lcom/mojang/serialization/Codec;
    • criteriaProgresses

      private final Map<String,CriterionProgress> criteriaProgresses
      Mappings:
      Namespace Name Mixin selector
      named criteriaProgresses Lnet/minecraft/advancement/AdvancementProgress;criteriaProgresses:Ljava/util/Map;
      intermediary field_1160 Lnet/minecraft/class_167;field_1160:Ljava/util/Map;
      official e Lai;e:Ljava/util/Map;
    • requirements

      private AdvancementRequirements requirements
      Mappings:
      Namespace Name Mixin selector
      named requirements Lnet/minecraft/advancement/AdvancementProgress;requirements:Lnet/minecraft/advancement/AdvancementRequirements;
      intermediary field_1161 Lnet/minecraft/class_167;field_1161:Lnet/minecraft/class_8782;
      official f Lai;f:Laj;
  • Constructor Details

    • AdvancementProgress

      private AdvancementProgress(Map<String,CriterionProgress> criteriaProgresses)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/advancement/AdvancementProgress;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_167;<init>(Ljava/util/Map;)V
      official <init> Lai;<init>(Ljava/util/Map;)V
    • AdvancementProgress

      public AdvancementProgress()
  • Method Details

    • init

      public void init(AdvancementRequirements requirements)
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/advancement/AdvancementProgress;init(Lnet/minecraft/advancement/AdvancementRequirements;)V
      intermediary method_727 Lnet/minecraft/class_167;method_727(Lnet/minecraft/class_8782;)V
      official a Lai;a(Laj;)V
    • isDone

      public boolean isDone()
      Mappings:
      Namespace Name Mixin selector
      named isDone Lnet/minecraft/advancement/AdvancementProgress;isDone()Z
      intermediary method_740 Lnet/minecraft/class_167;method_740()Z
      official a Lai;a()Z
    • isAnyObtained

      public boolean isAnyObtained()
      Mappings:
      Namespace Name Mixin selector
      named isAnyObtained Lnet/minecraft/advancement/AdvancementProgress;isAnyObtained()Z
      intermediary method_742 Lnet/minecraft/class_167;method_742()Z
      official b Lai;b()Z
    • obtain

      public boolean obtain(String name)
      Mappings:
      Namespace Name Mixin selector
      named obtain Lnet/minecraft/advancement/AdvancementProgress;obtain(Ljava/lang/String;)Z
      intermediary method_743 Lnet/minecraft/class_167;method_743(Ljava/lang/String;)Z
      official a Lai;a(Ljava/lang/String;)Z
    • reset

      public boolean reset(String name)
      Mappings:
      Namespace Name Mixin selector
      named reset Lnet/minecraft/advancement/AdvancementProgress;reset(Ljava/lang/String;)Z
      intermediary method_729 Lnet/minecraft/class_167;method_729(Ljava/lang/String;)Z
      official b Lai;b(Ljava/lang/String;)Z
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toPacket

      public void toPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named toPacket Lnet/minecraft/advancement/AdvancementProgress;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_733 Lnet/minecraft/class_167;method_733(Lnet/minecraft/class_2540;)V
      official a Lai;a(Lvw;)V
    • fromPacket

      public static AdvancementProgress fromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named fromPacket Lnet/minecraft/advancement/AdvancementProgress;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/advancement/AdvancementProgress;
      intermediary method_732 Lnet/minecraft/class_167;method_732(Lnet/minecraft/class_2540;)Lnet/minecraft/class_167;
      official b Lai;b(Lvw;)Lai;
    • getCriterionProgress

      @Nullable public @Nullable CriterionProgress getCriterionProgress(String name)
      Mappings:
      Namespace Name Mixin selector
      named getCriterionProgress Lnet/minecraft/advancement/AdvancementProgress;getCriterionProgress(Ljava/lang/String;)Lnet/minecraft/advancement/criterion/CriterionProgress;
      intermediary method_737 Lnet/minecraft/class_167;method_737(Ljava/lang/String;)Lnet/minecraft/class_178;
      official c Lai;c(Ljava/lang/String;)Lap;
    • isCriterionObtained

      private boolean isCriterionObtained(String name)
      Mappings:
      Namespace Name Mixin selector
      named isCriterionObtained Lnet/minecraft/advancement/AdvancementProgress;isCriterionObtained(Ljava/lang/String;)Z
      intermediary method_53663 Lnet/minecraft/class_167;method_53663(Ljava/lang/String;)Z
      official d Lai;d(Ljava/lang/String;)Z
    • getProgressBarPercentage

      public float getProgressBarPercentage()
      Mappings:
      Namespace Name Mixin selector
      named getProgressBarPercentage Lnet/minecraft/advancement/AdvancementProgress;getProgressBarPercentage()F
      intermediary method_735 Lnet/minecraft/class_167;method_735()F
      official c Lai;c()F
    • getProgressBarFraction

      @Nullable public @Nullable Text getProgressBarFraction()
      Mappings:
      Namespace Name Mixin selector
      named getProgressBarFraction Lnet/minecraft/advancement/AdvancementProgress;getProgressBarFraction()Lnet/minecraft/text/Text;
      intermediary method_728 Lnet/minecraft/class_167;method_728()Lnet/minecraft/class_2561;
      official d Lai;d()Lwz;
    • countObtainedRequirements

      private int countObtainedRequirements()
      Mappings:
      Namespace Name Mixin selector
      named countObtainedRequirements Lnet/minecraft/advancement/AdvancementProgress;countObtainedRequirements()I
      intermediary method_736 Lnet/minecraft/class_167;method_736()I
      official h Lai;h()I
    • getUnobtainedCriteria

      public Iterable<String> getUnobtainedCriteria()
      Mappings:
      Namespace Name Mixin selector
      named getUnobtainedCriteria Lnet/minecraft/advancement/AdvancementProgress;getUnobtainedCriteria()Ljava/lang/Iterable;
      intermediary method_731 Lnet/minecraft/class_167;method_731()Ljava/lang/Iterable;
      official e Lai;e()Ljava/lang/Iterable;
    • getObtainedCriteria

      public Iterable<String> getObtainedCriteria()
      Mappings:
      Namespace Name Mixin selector
      named getObtainedCriteria Lnet/minecraft/advancement/AdvancementProgress;getObtainedCriteria()Ljava/lang/Iterable;
      intermediary method_734 Lnet/minecraft/class_167;method_734()Ljava/lang/Iterable;
      official f Lai;f()Ljava/lang/Iterable;
    • getEarliestProgressObtainDate

      @Nullable public @Nullable Instant getEarliestProgressObtainDate()
      Mappings:
      Namespace Name Mixin selector
      named getEarliestProgressObtainDate Lnet/minecraft/advancement/AdvancementProgress;getEarliestProgressObtainDate()Ljava/time/Instant;
      intermediary method_741 Lnet/minecraft/class_167;method_741()Ljava/time/Instant;
      official g Lai;g()Ljava/time/Instant;
    • compareTo

      public int compareTo(AdvancementProgress advancementProgress)
      Specified by:
      compareTo in interface Comparable<AdvancementProgress>
      Mappings:
      Namespace Name Mixin selector
      named compareTo Lnet/minecraft/advancement/AdvancementProgress;compareTo(Lnet/minecraft/advancement/AdvancementProgress;)I
      intermediary method_738 Lnet/minecraft/class_167;method_738(Lnet/minecraft/class_167;)I
      official a Lai;a(Lai;)I