public class AdvancementProgress extends Object implements Comparable<AdvancementProgress>
Modifier and Type | Class and Description |
---|---|
static class |
AdvancementProgress.Serializer |
Modifier and Type | Field and Description |
---|---|
private Map<String,CriterionProgress> |
criteriaProgresses |
private String[][] |
requirements |
Constructor and Description |
---|
AdvancementProgress() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AdvancementProgress advancementProgress) |
private int |
countObtainedRequirements() |
static AdvancementProgress |
fromPacket(PacketByteBuf buf) |
CriterionProgress |
getCriterionProgress(String name) |
Date |
getEarliestProgressObtainDate() |
Iterable<String> |
getObtainedCriteria() |
String |
getProgressBarFraction() |
float |
getProgressBarPercentage() |
Iterable<String> |
getUnobtainedCriteria() |
void |
init(Map<String,AdvancementCriterion> criteria,
String[][] requirements) |
boolean |
isAnyObtained() |
boolean |
isDone() |
boolean |
obtain(String name) |
boolean |
reset(String name) |
void |
toPacket(PacketByteBuf buf) |
String |
toString() |
private final Map<String,CriterionProgress> criteriaProgresses
private String[][] requirements
public void init(Map<String,AdvancementCriterion> criteria, String[][] requirements)
public boolean isDone()
public boolean isAnyObtained()
public boolean obtain(String name)
public boolean reset(String name)
public void toPacket(PacketByteBuf buf)
public static AdvancementProgress fromPacket(PacketByteBuf buf)
@Nullable public CriterionProgress getCriterionProgress(String name)
@Environment(value=CLIENT) public float getProgressBarPercentage()
@Environment(value=CLIENT) private int countObtainedRequirements()
public int compareTo(AdvancementProgress advancementProgress)
compareTo
in interface Comparable<AdvancementProgress>