Class ExpandAdvancementProgress
java.lang.Object
com.blamejared.crafttweaker.natives.advancement.ExpandAdvancementProgress
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCompletedCriteria(net.minecraft.advancements.AdvancementProgress internal) Gets the completed criteria for the advancementstatic net.minecraft.advancements.CriterionProgressgetCriterion(net.minecraft.advancements.AdvancementProgress internal, String criterionName) Gets the criterion progress for the advancementstatic floatgetPercent(net.minecraft.advancements.AdvancementProgress internal) Gets the percentage of the advancement that is completestatic net.minecraft.network.chat.ComponentgetProgressText(net.minecraft.advancements.AdvancementProgress internal) Gets the progress text for the advancementgetRemainingCriteria(net.minecraft.advancements.AdvancementProgress internal) Gets the remaining criteria for the advancementstatic booleangrantProgress(net.minecraft.advancements.AdvancementProgress internal, String criterionName) Grants progress to the advancementstatic booleanhasProgress(net.minecraft.advancements.AdvancementProgress internal) Checks if the advancement has progressstatic booleanisDone(net.minecraft.advancements.AdvancementProgress internal) Checks if the advancement is donestatic booleanrevokeProgress(net.minecraft.advancements.AdvancementProgress internal, String criterionName) Revokes progress from the advancement
-
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
-