ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/common/config/values/ConfigStringListValues.java
2020-09-09 15:49:01 +01:00

96 lines
6.4 KiB
Java

package de.ellpeck.actuallyadditions.common.config.values;
import de.ellpeck.actuallyadditions.common.config.ConfigCategories;
public enum ConfigStringListValues {
CONFIGURE_ITEMS(
"Configuration Items",
ConfigCategories.OTHER,
new String[] { "minecraft:redstone_torch", "minecraft:compass" },
"The non-Actually Additions items that are used to configure blocks from the mod. The first one is the Redstone Torch used to configure the Redstone Mode, and the second one is the Compass used to configure Laser Relays. If another mod overrides usage of either one of these items, you can change the registry name of the used items (using blocks is not possible) here."),
CRUSHER_RECIPE_EXCEPTIONS(
"Crusher Recipe Exceptions",
ConfigCategories.OTHER,
new String[] { "ingotBrick", "ingotBrickNether" },
"Ingots, Dusts and Ores that will be blacklisted from being auto-registered to be crushed by the Crusher. This list uses OreDictionary Names of the Inputs only."),
CRUSHER_OUTPUT_BLACKLIST(
"Crusher Output Blacklist",
ConfigCategories.OTHER,
new String[0],
"The items that aren't allowed as outputs from OreDict Crusher recipes. Use this in case a mod, for example, adds a dust variant that can't be smelted into an ingot. Use REGISTRY NAMES, and if metadata is needed, add it like so: somemod:some_item@3"),
MINING_LENS_BLACKLIST(
"Mining Lens Blacklist",
ConfigCategories.OTHER,
new String[0],
"The items that aren't allowed as being generated by the Lens of the Miner. Use REGISTRY NAMES, and if metadata is needed, add it like so: somemod:some_block@3"),
MINING_LENS_EXTRA_WHITELIST(
"Mining lens Extra Whitelist",
ConfigCategories.OTHER,
new String[0],
"By default, the mining lens has a set number of ores it can generate. If there is an ore that it should be able to generate, add its OreDictionary name followed by an @ and the weight that it should have (the higher, the more often it will generate), followed by another @ and then an s for it to generate in stone and an n for it to generate in netherrack. For instance: oreCheese@100@s would add cheese ore with a weight of 100 that generates in stone."),
MASHED_FOOD_CRAFTING_EXCEPTIONS(
"Mashed Food Crafting Exceptions",
ConfigCategories.OTHER,
new String[] { "actuallyadditions:item_coffee" },
"The ItemFood, IGrowable and IPlantable Items that can not be used to craft Mashed Food. These are the actual registered Item Names, the ones you use, for example, when using the /give Command."),
PAXEL_EXTRA_MINING_WHITELIST(
"AIOT Extra Whitelist",
ConfigCategories.TOOL_VALUES,
new String[] { "TConstruct:GravelOre" },
"By default, the AIOT can mine certain blocks. If there is one that it can't mine, but should be able to, put its REGISTRY NAME here. These are the actual registered Item Names, the ones you use, for example, when using the /give Command."),
DRILL_EXTRA_MINING_WHITELIST(
"Drill Extra Whitelist",
ConfigCategories.TOOL_VALUES,
new String[] { "TConstruct:GravelOre" },
"By default, the Drill can mine certain blocks. If there is one that it can't mine, but should be able to, put its REGISTRY NAME here. These are the actual registered Item Names, the ones you use, for example, when using the /give Command."),
MINER_EXTRA_WHITELIST(
"Vertical Digger Extra Whitelist",
ConfigCategories.MACHINE_VALUES,
new String[0],
"By default, the Vertical Digger mines everything that starts with 'ore' in the OreDictionary. If there is one that it can't mine, but should be able to, put its REGISTRY NAME here. These are the actual registered Item Names, the ones you use, for example, when using the /give Command. This Config Option only applies if the miner is in Ores Only Mode."),
MINER_BLACKLIST(
"Vertical Digger Blacklist",
ConfigCategories.MACHINE_VALUES,
new String[0],
"By default, the Vertical Digger mines everything that starts with 'ore' in the OreDictionary. If there is one that it can mine, but shouldn't be able to, put its REGISTRY NAME here. These are the actual registered Item Names, the ones you use, for example, when using the /give Command. This Config Option will apply in both modes."),
REPAIRER_EXTRA_WHITELIST(
"Item Repairer Extra Whitelist",
ConfigCategories.MACHINE_VALUES,
new String[] { "tconstruct:pickaxe", "tconstruct:shovel", "tconstruct:hatchet", "tconstruct:mattock", "tconstruct:broadsword", "tconstruct:longsword", "tconstruct:frypan", "tconstruct:battlesign", "tconstruct:hammer", "tconstruct:excavator", "tconstruct:lumberaxe", "tconstruct:cleaver", "tconstruct:rapier" },
"By default, the Item Repairer only repairs items which are repairable in an anvil. Add an item's REGISTRY NAME here if you want it to be repairable."),
SPAWNER_CHANGER_BLACKLIST(
"Spawner Changer Blacklist",
ConfigCategories.OTHER,
new String[] { "minecraft:villager_golem" },
"By default, the Spawner Changer allows every living entity to be put into a spawner. If there is one that shouldn't be able to, put its MAPPING NAME here."),
SACK_BLACKLIST(
"Sack Blacklist",
ConfigCategories.OTHER,
new String[0],
"The items that aren't allowed to be put in the Traveller's Sack. Use REGISTRY NAMES, and if metadata is needed, add it like so: somemod:some_block@3"),
REPAIR_BLACKLIST(
"Repair Blacklist",
ConfigCategories.OTHER,
new String[0],
"The items that aren't allowed to be put in the Repairer. Use REGISTRY NAMES, and if metadata is needed, add it like so: somemod:some_block@3");
public final String name;
public final String category;
public final String[] defaultValue;
public final String desc;
public String[] currentValue;
ConfigStringListValues(String name, ConfigCategories category, String[] defaultValue, String desc) {
this.name = name;
this.category = category.name;
this.defaultValue = defaultValue;
this.desc = desc;
}
public String[] getValue() {
return this.currentValue;
}
}