public interface AdvancementProgress
Modifier and Type | Method | Description |
---|---|---|
boolean |
awardCriteria(String criteria) |
Mark the specified criteria as awarded at the current time.
|
Advancement |
getAdvancement() |
The advancement this progress is concerning.
|
Collection<String> |
getAwardedCriteria() |
Gets the criteria which have been awarded.
|
Date |
getDateAwarded(String criteria) |
Get the date the specified criteria was awarded.
|
Collection<String> |
getRemainingCriteria() |
Get the criteria which have not been awarded.
|
boolean |
isDone() |
Check if all criteria for this advancement have been met.
|
boolean |
revokeCriteria(String criteria) |
Mark the specified criteria as uncompleted.
|
@NotNull Advancement getAdvancement()
boolean isDone()
boolean awardCriteria(@NotNull String criteria)
criteria
- the criteria to markboolean revokeCriteria(@NotNull String criteria)
criteria
- the criteria to mark@Nullable Date getDateAwarded(@NotNull String criteria)
criteria
- the criteria to check@NotNull Collection<String> getRemainingCriteria()
@NotNull Collection<String> getAwardedCriteria()
Copyright © 2020. All rights reserved.