Package net.minecraft.advancements
Class AdvancementProgress
java.lang.Object
net.minecraft.advancements.AdvancementProgress
- All Implemented Interfaces:
Comparable<AdvancementProgress>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AdvancementProgress>
private final Map<String,
CriterionProgress> private static final com.mojang.serialization.Codec<Map<String,
CriterionProgress>> private static final com.mojang.serialization.Codec<Instant>
private static final DateTimeFormatter
private AdvancementRequirements
-
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
private boolean
isCriterionDone
(String p_301316_) boolean
isDone()
boolean
revokeProgress
(String p_8210_) void
serializeToNetwork
(FriendlyByteBuf p_8205_) toString()
void
update
(AdvancementRequirements p_300626_)
-
Field Details
-
OBTAINED_TIME_FORMAT
-
OBTAINED_TIME_CODEC
-
CRITERIA_CODEC
-
CODEC
-
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
-
isCriterionDone
-
getPercent
public float getPercent() -
getProgressText
-
countCompletedRequirements
private int countCompletedRequirements() -
getRemainingCriteria
-
getCompletedCriteria
-
getFirstProgressDate
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AdvancementProgress>
-