Package moe.caramel.daydream.advancement
Interface ProgressMap
플레이어 발전 과제 진행도 맵
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
진행도 맵의 데이터를 가져옵니다.void
iterator
(BiConsumer<NamespacedKey, CriteriaProgress> action) 진행도 맵에 대하여 반복을 실행합니다.newCountProgress
(NamespacedKey key, int currentCount, @Nullable Instant obtainedTime) 주어진 발전 과제에 대하여 새로운 카운트 형식의 진행도를 생성하고 추가합니다.newProgress
(NamespacedKey key, Map<String, CriterionProgress> criteria) 주어진 발전 과제에 대하여 새로운 진행도를 생성하고 추가합니다.
-
Method Details
-
getData
@UnmodifiableView Map<NamespacedKey,CriteriaProgress> getData()진행도 맵의 데이터를 가져옵니다.- Returns:
- 수정할 수 없는 데이터 맵
-
iterator
진행도 맵에 대하여 반복을 실행합니다.- Parameters:
action
- 수행할 작업
-
newProgress
주어진 발전 과제에 대하여 새로운 진행도를 생성하고 추가합니다.- Parameters:
key
- 대상 발전 과제의 키criteria
- 기준 달성 목록- Returns:
- 생성된 진행도
-
newCountProgress
CountableProgress newCountProgress(NamespacedKey key, int currentCount, @Nullable Instant obtainedTime) 주어진 발전 과제에 대하여 새로운 카운트 형식의 진행도를 생성하고 추가합니다.- Parameters:
key
- 대상 발전 과제의 키currentCount
- 현재 카운트obtainedTime
- 기준 달성 시간 (null
인 경우 달성하지 않음)- Returns:
- 생성된 카운트 형식의 진행도
-