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