-
Notifications
You must be signed in to change notification settings - Fork 3
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
9985c23
commit 3a1e47c
Showing
9 changed files
with
127 additions
and
80 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
37 changes: 35 additions & 2 deletions
37
common/src/main/java/com/unrealdinnerbone/jamd/JamdConfig.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 |
---|---|---|
@@ -1,6 +1,39 @@ | ||
package com.unrealdinnerbone.jamd; | ||
|
||
import java.util.List; | ||
import com.unrealdinnerbone.config.ConfigCreator; | ||
import com.unrealdinnerbone.config.config.BooleanConfig; | ||
import com.unrealdinnerbone.config.config.ListConfig; | ||
|
||
public record JamdConfig(boolean dynamicOreAddition, List<String> blackListedOres) { | ||
public class JamdConfig { | ||
|
||
private final BooleanConfig dynamicOreAdditionConfig; | ||
private final ListConfig<String> blackListedOresConfig; | ||
public JamdConfig(ConfigCreator configCreator) { | ||
dynamicOreAdditionConfig = configCreator.createBoolean("dynamicOreAddition", true); | ||
blackListedOresConfig = configCreator.createList("blackListedOres", new String[]{ | ||
"minecraft:ore_gold_deltas", | ||
"minecraft:ore_infested", | ||
"minecraft:ore_magma", | ||
"minecraft:ore_gravel", | ||
"minecraft:ore_soul_sand", | ||
"minecraft:ore_gold_extra", | ||
"minecraft:ore_quartz_nether", | ||
"minecraft:ore_gold_nether", | ||
"minecraft:ore_quartz_deltas", | ||
"minecraft:ore_gravel_nether", | ||
"minecraft:ore_dirt", | ||
"minecraft:ore_blackstone", | ||
"minecraft:ore_andesite_upper", | ||
"minecraft:ore_clay", | ||
"enlightened_end:.*" | ||
}, String[].class); | ||
} | ||
|
||
public BooleanConfig getDynamicOreAdditionConfig() { | ||
return dynamicOreAdditionConfig; | ||
} | ||
|
||
public ListConfig<String> getBlackListedOresConfig() { | ||
return blackListedOresConfig; | ||
} | ||
} |
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