Class AdvancementProgress

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

public class AdvancementProgress extends Object implements Comparable<AdvancementProgress>
  • Field Details

  • Constructor Details

    • AdvancementProgress

      public AdvancementProgress()
  • Method Details

    • update

      public void update(Map<String,Criterion> p_192099_1_, String[][] p_192099_2_)
    • isDone

      public boolean isDone()
    • hasProgress

      public boolean hasProgress()
    • grantProgress

      public boolean grantProgress(String p_192109_1_)
    • revokeProgress

      public boolean revokeProgress(String p_192101_1_)
    • toString

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

      public void serializeToNetwork(PacketBuffer p_192104_1_)
    • fromNetwork

      public static AdvancementProgress fromNetwork(PacketBuffer p_192100_0_)
    • getCriterion

      @Nullable public CriterionProgress getCriterion(String p_192106_1_)
    • getPercent

      public float getPercent()
    • getProgressText

      @Nullable public String getProgressText()
    • countCompletedRequirements

      private int countCompletedRequirements()
    • getRemainingCriteria

      public Iterable<String> getRemainingCriteria()
    • getCompletedCriteria

      public Iterable<String> getCompletedCriteria()
    • getFirstProgressDate

      @Nullable public Date getFirstProgressDate()
    • compareTo

      public int compareTo(AdvancementProgress p_compareTo_1_)
      Specified by:
      compareTo in interface Comparable<AdvancementProgress>