Class AdvancementProgress

    • Field Detail

      • criteria

        private final java.util.Map<java.lang.String,​CriterionProgress> criteria
      • requirements

        private java.lang.String[][] requirements
    • Constructor Detail

      • AdvancementProgress

        public AdvancementProgress()
    • Method Detail

      • update

        public void update​(java.util.Map<java.lang.String,​Criterion> p_192099_1_,
                           java.lang.String[][] p_192099_2_)
      • isDone

        public boolean isDone()
      • hasProgress

        public boolean hasProgress()
      • grantProgress

        public boolean grantProgress​(java.lang.String p_192109_1_)
      • revokeProgress

        public boolean revokeProgress​(java.lang.String p_192101_1_)
      • toString

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

        public void serializeToNetwork​(PacketBuffer p_192104_1_)
      • getCriterion

        @Nullable
        public CriterionProgress getCriterion​(java.lang.String p_192106_1_)
      • getPercent

        public float getPercent()
      • getProgressText

        @Nullable
        public java.lang.String getProgressText()
      • countCompletedRequirements

        private int countCompletedRequirements()
      • getRemainingCriteria

        public java.lang.Iterable<java.lang.String> getRemainingCriteria()
      • getCompletedCriteria

        public java.lang.Iterable<java.lang.String> getCompletedCriteria()
      • getFirstProgressDate

        @Nullable
        public java.util.Date getFirstProgressDate()