Package org.bukkit.advancement
Interface AdvancementProgress
public interface AdvancementProgress
The individual status of an advancement for a player. This class is not
reference safe as the underlying advancement may be reloaded.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
awardCriteria
(@NotNull String criteria) Mark the specified criteria as awarded at the current time.int
이 발전 과제 진행도의 현재 카운트를 가져옵니다.boolean
발전 과제 진행도의 카운트를 감소시킵니다.The advancement this progress is concerning.Gets the criteria which have been awarded.getDateAwarded
(@NotNull String criteria) Get the date the specified criteria was awarded.Get the criteria which have not been awarded.boolean
발전 과제 진행도의 카운트를 증가시킵니다.boolean
isDone()
Check if all criteria for this advancement have been met.boolean
revokeCriteria
(@NotNull String criteria) Mark the specified criteria as uncompleted.boolean
useCount()
발전 과제 진행도가 카운트를 사용하는지 확인합니다.
-
Method Details
-
getAdvancement
The advancement this progress is concerning.- Returns:
- the relevant advancement
-
isDone
boolean isDone()Check if all criteria for this advancement have been met.- Returns:
- true if this advancement is done
-
awardCriteria
Mark the specified criteria as awarded at the current time.- Parameters:
criteria
- the criteria to mark- Returns:
- true if awarded, false if criteria does not exist or already awarded.
-
revokeCriteria
Mark the specified criteria as uncompleted.- Parameters:
criteria
- the criteria to mark- Returns:
- true if removed, false if criteria does not exist or not awarded
-
getDateAwarded
Get the date the specified criteria was awarded.- Parameters:
criteria
- the criteria to check- Returns:
- date awarded or null if unawarded or criteria does not exist
-
getRemainingCriteria
Get the criteria which have not been awarded.- Returns:
- unmodifiable copy of criteria remaining
-
getAwardedCriteria
Gets the criteria which have been awarded.- Returns:
- unmodifiable copy of criteria awarded
-
increaseCount
boolean increaseCount()발전 과제 진행도의 카운트를 증가시킵니다.- Returns:
- 증가되었다면
true
, 최대 범위에 도달한 경우false
를 반환 - Throws:
IllegalStateException
- 이 발전 과제 진행도가 카운트를 사용하지 않습니다.
-
decreaseCount
boolean decreaseCount()발전 과제 진행도의 카운트를 감소시킵니다.- Returns:
- 감소되었다면
true
, 최소 범위에 도달한 경우false
를 반환 - Throws:
IllegalStateException
- 이 발전 과제 진행도가 카운트를 사용하지 않습니다.
-
useCount
boolean useCount()발전 과제 진행도가 카운트를 사용하는지 확인합니다.- Returns:
- 이 발전 과제 진행도가 카운트를 사용하는 경우
true
를 반환
-
currentCount
int currentCount()이 발전 과제 진행도의 현재 카운트를 가져옵니다.- Returns:
- 현재 카운트
-