Package net.minecraft.advancements
Class AdvancementProgress
- java.lang.Object
-
- net.minecraft.advancements.AdvancementProgress
-
- All Implemented Interfaces:
java.lang.Comparable<AdvancementProgress>
public class AdvancementProgress extends java.lang.Object implements java.lang.Comparable<AdvancementProgress>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdvancementProgress.Serializer
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,CriterionProgress>
criteria
private java.lang.String[][]
requirements
-
Constructor Summary
Constructors Constructor Description AdvancementProgress()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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
getCriterion(java.lang.String p_192106_1_)
java.util.Date
getFirstProgressDate()
float
getPercent()
java.lang.String
getProgressText()
java.lang.Iterable<java.lang.String>
getRemainingCriteria()
boolean
grantProgress(java.lang.String p_192109_1_)
boolean
hasProgress()
boolean
isDone()
boolean
revokeProgress(java.lang.String p_192101_1_)
void
serializeToNetwork(PacketBuffer p_192104_1_)
java.lang.String
toString()
void
update(java.util.Map<java.lang.String,Criterion> p_192099_1_, java.lang.String[][] p_192099_2_)
-
-
-
Field Detail
-
criteria
private final java.util.Map<java.lang.String,CriterionProgress> criteria
-
requirements
private java.lang.String[][] requirements
-
-
Method Detail
-
update
public void update(java.util.Map<java.lang.String,Criterion> p_192099_1_, java.lang.String[][] p_192099_2_)
-
isDone
public boolean isDone()
-
hasProgress
public boolean hasProgress()
-
grantProgress
public boolean grantProgress(java.lang.String p_192109_1_)
-
revokeProgress
public boolean revokeProgress(java.lang.String p_192101_1_)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
serializeToNetwork
public void serializeToNetwork(PacketBuffer p_192104_1_)
-
fromNetwork
public static AdvancementProgress fromNetwork(PacketBuffer p_192100_0_)
-
getCriterion
@Nullable public CriterionProgress getCriterion(java.lang.String p_192106_1_)
-
getPercent
public float getPercent()
-
getProgressText
@Nullable public java.lang.String getProgressText()
-
countCompletedRequirements
private int countCompletedRequirements()
-
getRemainingCriteria
public java.lang.Iterable<java.lang.String> getRemainingCriteria()
-
getCompletedCriteria
public java.lang.Iterable<java.lang.String> getCompletedCriteria()
-
getFirstProgressDate
@Nullable public java.util.Date getFirstProgressDate()
-
compareTo
public int compareTo(AdvancementProgress p_compareTo_1_)
- Specified by:
compareTo
in interfacejava.lang.Comparable<AdvancementProgress>
-
-