Package net.minecraft.advancements
Class AdvancementProgress
java.lang.Object
net.minecraft.advancements.AdvancementProgress
- All Implemented Interfaces:
Comparable<AdvancementProgress>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) Map<String,CriterionProgress>
private String[][]
-
Constructor Summary
ModifierConstructorDescriptionprivate
AdvancementProgress(Map<String,CriterionProgress> p_144358_)
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo(AdvancementProgress p_8195_)
private int
static AdvancementProgress
fromNetwork(FriendlyByteBuf p_8212_)
getCriterion(String p_8215_)
float
boolean
grantProgress(String p_8197_)
boolean
boolean
isDone()
boolean
revokeProgress(String p_8210_)
void
serializeToNetwork(FriendlyByteBuf p_8205_)
toString()
void
-
Field Details
-
criteria
-
requirements
-
-
Constructor Details
-
AdvancementProgress
-
AdvancementProgress
public AdvancementProgress()
-
-
Method Details
-
update
-
isDone
public boolean isDone() -
hasProgress
public boolean hasProgress() -
grantProgress
-
revokeProgress
-
toString
-
serializeToNetwork
-
fromNetwork
-
getCriterion
-
getPercent
public float getPercent() -
getProgressText
-
countCompletedRequirements
private int countCompletedRequirements() -
getRemainingCriteria
-
getCompletedCriteria
-
getFirstProgressDate
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AdvancementProgress>
-