public class CriterionProgress
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private AdvancementProgress |
advancementProgress |
private static java.text.SimpleDateFormat |
DATE_TIME_FORMATTER |
private java.util.Date |
obtained |
Constructor and Description |
---|
CriterionProgress(AdvancementProgress advancementProgressIn) |
Modifier and Type | Method and Description |
---|---|
static CriterionProgress |
fromDateTime(AdvancementProgress advancementProgressIn,
java.lang.String dateTime) |
java.util.Date |
getObtained() |
boolean |
isObtained() |
void |
obtain() |
static CriterionProgress |
read(PacketBuffer buf,
AdvancementProgress advancementProgressIn) |
void |
reset() |
com.google.gson.JsonElement |
serialize() |
java.lang.String |
toString() |
void |
write(PacketBuffer buf) |
private static final java.text.SimpleDateFormat DATE_TIME_FORMATTER
private final AdvancementProgress advancementProgress
private java.util.Date obtained
public CriterionProgress(AdvancementProgress advancementProgressIn)
public boolean isObtained()
public void obtain()
public void reset()
public java.util.Date getObtained()
public java.lang.String toString()
toString
in class java.lang.Object
public void write(PacketBuffer buf)
public com.google.gson.JsonElement serialize()
public static CriterionProgress read(PacketBuffer buf, AdvancementProgress advancementProgressIn)
public static CriterionProgress fromDateTime(AdvancementProgress advancementProgressIn, java.lang.String dateTime)