Class ExpandAdvancementProgress

java.lang.Object
com.blamejared.crafttweaker.natives.advancement.ExpandAdvancementProgress

@ZenRegister public class ExpandAdvancementProgress extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<String>
    getCompletedCriteria(net.minecraft.advancements.AdvancementProgress internal)
    Gets the completed criteria for the advancement
    static net.minecraft.advancements.CriterionProgress
    getCriterion(net.minecraft.advancements.AdvancementProgress internal, String criterionName)
    Gets the criterion progress for the advancement
    static float
    getPercent(net.minecraft.advancements.AdvancementProgress internal)
    Gets the percentage of the advancement that is complete
    static net.minecraft.network.chat.Component
    getProgressText(net.minecraft.advancements.AdvancementProgress internal)
    Gets the progress text for the advancement
    static List<String>
    getRemainingCriteria(net.minecraft.advancements.AdvancementProgress internal)
    Gets the remaining criteria for the advancement
    static boolean
    grantProgress(net.minecraft.advancements.AdvancementProgress internal, String criterionName)
    Grants progress to the advancement
    static boolean
    hasProgress(net.minecraft.advancements.AdvancementProgress internal)
    Checks if the advancement has progress
    static boolean
    isDone(net.minecraft.advancements.AdvancementProgress internal)
    Checks if the advancement is done
    static boolean
    revokeProgress(net.minecraft.advancements.AdvancementProgress internal, String criterionName)
    Revokes progress from the advancement

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandAdvancementProgress

      public ExpandAdvancementProgress()
  • Method Details

    • isDone

      public static boolean isDone(net.minecraft.advancements.AdvancementProgress internal)
      Checks if the advancement is done
      Returns:
      true if the advancement is done, false otherwise
    • hasProgress

      public static boolean hasProgress(net.minecraft.advancements.AdvancementProgress internal)
      Checks if the advancement has progress
      Returns:
      true if the advancement has progress, false otherwise
    • grantProgress

      public static boolean grantProgress(net.minecraft.advancements.AdvancementProgress internal, String criterionName)
      Grants progress to the advancement
      Parameters:
      criterionName - The name of the criterion to grant progress to
      Returns:
      true if the progress was granted, false otherwise
    • revokeProgress

      public static boolean revokeProgress(net.minecraft.advancements.AdvancementProgress internal, String criterionName)
      Revokes progress from the advancement
      Parameters:
      criterionName - The name of the criterion to revoke progress from
      Returns:
      true if the progress was revoked, false otherwise
    • getCriterion

      public static net.minecraft.advancements.CriterionProgress getCriterion(net.minecraft.advancements.AdvancementProgress internal, String criterionName)
      Gets the criterion progress for the advancement
      Parameters:
      criterionName - The name of the criterion to get progress for
      Returns:
      The criterion progress, or null if it doesn't exist
    • getPercent

      public static float getPercent(net.minecraft.advancements.AdvancementProgress internal)
      Gets the percentage of the advancement that is complete
      Returns:
      The percentage of the advancement that is complete
    • getProgressText

      public static net.minecraft.network.chat.Component getProgressText(net.minecraft.advancements.AdvancementProgress internal)
      Gets the progress text for the advancement
      Returns:
      The progress text for the advancement, or null if it doesn't exist
    • getRemainingCriteria

      public static List<String> getRemainingCriteria(net.minecraft.advancements.AdvancementProgress internal)
      Gets the remaining criteria for the advancement
      Returns:
      The remaining criteria for the advancement
    • getCompletedCriteria

      public static List<String> getCompletedCriteria(net.minecraft.advancements.AdvancementProgress internal)
      Gets the completed criteria for the advancement
      Returns:
      The completed criteria for the advancement