-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add common base for category providers
- Loading branch information
1 parent
4c06ffd
commit 726e81f
Showing
6 changed files
with
35 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
common/src/main/java/com/klikli_dev/modonomicon/api/datagen/CategoryProviderBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.klikli_dev.modonomicon.api.datagen; | ||
|
||
import com.klikli_dev.modonomicon.api.datagen.book.BookEntryModel; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public abstract class CategoryProviderBase extends ModonomiconProviderBase { | ||
protected final ModonomiconProviderBase parent; | ||
|
||
protected CategoryProviderBase(ModonomiconProviderBase parent, String modId, ModonomiconLanguageProvider lang, Map<String, ModonomiconLanguageProvider> translations, BookContextHelper context, ConditionHelper conditionHelper) { | ||
super(modId, lang, translations, context, conditionHelper); | ||
this.parent = parent; | ||
} | ||
|
||
public abstract CategoryEntryMap entryMap(); | ||
|
||
public abstract BookEntryModel add(BookEntryModel entry); | ||
|
||
public abstract List<BookEntryModel> add(List<BookEntryModel> entries); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters