Class CriterionProgress

java.lang.Object
net.minecraft.advancements.CriterionProgress

public class CriterionProgress extends Object
  • Field Details

    • DATE_FORMAT

      private static final SimpleDateFormat DATE_FORMAT
    • obtained

      @Nullable private Date obtained
  • Constructor Details

    • CriterionProgress

      public CriterionProgress()
  • Method Details

    • isDone

      public boolean isDone()
    • grant

      public void grant()
    • revoke

      public void revoke()
    • getObtained

      @Nullable public Date getObtained()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • serializeToNetwork

      public void serializeToNetwork(FriendlyByteBuf p_12915_)
    • serializeToJson

      public com.google.gson.JsonElement serializeToJson()
    • fromNetwork

      public static CriterionProgress fromNetwork(FriendlyByteBuf p_12918_)
    • fromJson

      public static CriterionProgress fromJson(String p_12913_)