-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option for Pandora's Box loot table
- Loading branch information
Showing
6 changed files
with
55 additions
and
23 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
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
20 changes: 20 additions & 0 deletions
20
src/main/java/dev/attackeight/the_vault_jei/utils/ModConfig.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,20 @@ | ||
package dev.attackeight.the_vault_jei.utils; | ||
|
||
import net.minecraftforge.common.ForgeConfigSpec; | ||
|
||
public class ModConfig { | ||
public static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder(); | ||
public static final ForgeConfigSpec SPEC; | ||
|
||
private static final ForgeConfigSpec.BooleanValue SHOW; | ||
|
||
public static boolean shouldShow() { | ||
return SHOW.get(); | ||
} | ||
|
||
static { | ||
SHOW = BUILDER.comment("Should JEI show loot tables for items not used in the base modpack") | ||
.define("enable_hidden", false); | ||
SPEC = BUILDER.build(); | ||
} | ||
} |