public class AdvancementProgress extends java.lang.Object implements java.lang.Comparable<AdvancementProgress>
Modifier and Type | Class and Description |
---|---|
static class |
AdvancementProgress.Serializer |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,CriterionProgress> |
criteria |
private java.lang.String[][] |
requirements |
Constructor and Description |
---|
AdvancementProgress() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AdvancementProgress p_compareTo_1_) |
private int |
countCompletedRequirements() |
static AdvancementProgress |
fromNetwork(PacketBuffer p_192100_0_) |
java.lang.Iterable<java.lang.String> |
getCompletedCriteria() |
CriterionProgress |
getCriterionProgress(java.lang.String criterionIn) |
java.util.Date |
getFirstProgressDate() |
float |
getPercent() |
java.lang.String |
getProgressText() |
java.lang.Iterable<java.lang.String> |
getRemaningCriteria() |
boolean |
grantCriterion(java.lang.String criterionIn) |
boolean |
hasProgress() |
boolean |
isDone() |
boolean |
revokeCriterion(java.lang.String criterionIn) |
void |
serializeToNetwork(PacketBuffer p_192104_1_) |
java.lang.String |
toString() |
void |
update(java.util.Map<java.lang.String,Criterion> criteriaIn,
java.lang.String[][] requirements) |
private final java.util.Map<java.lang.String,CriterionProgress> criteria
private java.lang.String[][] requirements
public void update(java.util.Map<java.lang.String,Criterion> criteriaIn, java.lang.String[][] requirements)
public boolean isDone()
public boolean hasProgress()
public boolean grantCriterion(java.lang.String criterionIn)
public boolean revokeCriterion(java.lang.String criterionIn)
public java.lang.String toString()
toString
in class java.lang.Object
public void serializeToNetwork(PacketBuffer p_192104_1_)
public static AdvancementProgress fromNetwork(PacketBuffer p_192100_0_)
@Nullable public CriterionProgress getCriterionProgress(java.lang.String criterionIn)
public float getPercent()
@Nullable public java.lang.String getProgressText()
private int countCompletedRequirements()
public java.lang.Iterable<java.lang.String> getRemaningCriteria()
public java.lang.Iterable<java.lang.String> getCompletedCriteria()
@Nullable public java.util.Date getFirstProgressDate()
public int compareTo(AdvancementProgress p_compareTo_1_)
compareTo
in interface java.lang.Comparable<AdvancementProgress>