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

      private AdvancementProgress(Map<String,​CriterionProgress> p_144358_)
    • AdvancementProgress

      public AdvancementProgress()
  • Method Details

    • update

      public void update(Map<String,​Criterion> p_8199_, String[][] p_8200_)
    • isDone

      public boolean isDone()
    • hasProgress

      public boolean hasProgress()
    • grantProgress

      public boolean grantProgress(String p_8197_)
    • revokeProgress

      public boolean revokeProgress(String p_8210_)
    • toString

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

      public void serializeToNetwork(FriendlyByteBuf p_8205_)
    • fromNetwork

      public static AdvancementProgress fromNetwork(FriendlyByteBuf p_8212_)
    • getCriterion

      @Nullable public CriterionProgress getCriterion(String p_8215_)
    • 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_8195_)
      Specified by:
      compareTo in interface Comparable<AdvancementProgress>