-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1428ed2
commit eb8585f
Showing
7 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
src/generated/resources/.cache/3fa62e6e7a071b2d9f296990c67d7a2df0006913
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,2 @@ | ||
// 1.19.2 2022-12-07T18:25:36.8109299 Books: theurgy | ||
d276faffd86ca23dd3cd376cad7d121ca08b5f46 data/theurgy/modonomicons/the_hermetica/book.json |
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/c622617f6fabf890a00b9275cd5f643584a8a2c8
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// 1.19.2 2022-12-07T17:42:33.8512255 Languages: en_us | ||
eda78b9049e529d9eb8067159895112c201b43c6 assets/theurgy/lang/en_us.json | ||
// 1.19.2 2022-12-07T18:25:36.8059234 Languages: en_us | ||
60ec1802d823ac252346543f3f1530b4c87e56b0 assets/theurgy/lang/en_us.json |
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
12 changes: 12 additions & 0 deletions
12
src/generated/resources/data/theurgy/modonomicons/the_hermetica/book.json
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,12 @@ | ||
{ | ||
"auto_add_read_conditions": true, | ||
"book_content_texture": "modonomicon:textures/gui/book_content.png", | ||
"book_overview_texture": "modonomicon:textures/gui/book_overview.png", | ||
"crafting_texture": "modonomicon:textures/gui/crafting_textures.png", | ||
"creative_tab": "modonomicon", | ||
"default_title_color": 0, | ||
"generate_book_item": true, | ||
"model": "modonomicon:modonomicon_purple", | ||
"name": "book.theurgy.the_hermetica.name", | ||
"tooltip": "book.theurgy.the_hermetica.tooltip" | ||
} |
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
47 changes: 47 additions & 0 deletions
47
src/main/java/com/klikli_dev/theurgy/datagen/TheurgyBookProvider.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,47 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2022 klikli-dev | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
package com.klikli_dev.theurgy.datagen; | ||
|
||
import com.klikli_dev.modonomicon.api.ModonomiconAPI; | ||
import com.klikli_dev.modonomicon.api.datagen.BookProvider; | ||
import com.klikli_dev.modonomicon.api.datagen.book.BookModel; | ||
import net.minecraft.data.DataGenerator; | ||
import net.minecraftforge.common.data.LanguageProvider; | ||
|
||
public class TheurgyBookProvider extends BookProvider { | ||
public TheurgyBookProvider(DataGenerator generator, String modid, LanguageProvider lang) { | ||
super(generator, modid, lang); | ||
} | ||
|
||
@Override | ||
protected void generate() { | ||
var theHermetica = this.makeTheHermetica(); | ||
this.add(theHermetica); | ||
} | ||
|
||
private BookModel makeTheHermetica() { | ||
var helper = ModonomiconAPI.get().getLangHelper(this.modid); | ||
helper.book("the_hermetica"); | ||
|
||
this.lang.add(helper.bookName(), "The Hermetica"); | ||
this.lang.add(helper.bookTooltip(), "A treatise on the Ancient Art of Alchemy"); | ||
|
||
int categorySortNum = 1; | ||
|
||
var book = BookModel.builder() | ||
.withId(this.modLoc("the_hermetica")) | ||
.withName(helper.bookName()) | ||
.withTooltip(helper.bookTooltip()) | ||
.withCategories( | ||
|
||
) | ||
.withGenerateBookItem(true) | ||
.withAutoAddReadConditions(true) | ||
.build(); | ||
return book; | ||
} | ||
} |
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