ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/common/config/ItemConfig.java

40 lines
1.8 KiB
Java

package de.ellpeck.actuallyadditions.common.config;
import com.google.common.collect.ImmutableList;
import net.minecraftforge.common.ForgeConfigSpec.ConfigValue;
import java.util.List;
import static de.ellpeck.actuallyadditions.common.config.Config.COMMON_BUILDER;
import static net.minecraftforge.common.ForgeConfigSpec.IntValue;
public class ItemConfig {
public final IntValue teleportStaffCost;
public final IntValue teleportStaffMaxEnergy;
public final IntValue drillMaxEnergy;
public final ConfigValue<List<String>> drillSpecialBlockWhitelist;
public ItemConfig() {
COMMON_BUILDER.comment("Item Config Options").push("items");
teleportStaffCost = COMMON_BUILDER
.comment(
"The base cost of the Teleport Staff (this is used to calculate the cost per distances as well)",
"Don't assign this value higher than the Teleport Staffs max energy!"
)
.defineInRange("Teleport Staff Base Cost", 200, 0, 100000);
teleportStaffMaxEnergy = COMMON_BUILDER
.comment("The max amount of Crystal Flux stored in the Teleport Staff")
.defineInRange("Teleport Staff Max Energy", 250000, 0, 1000000);
drillMaxEnergy = COMMON_BUILDER
.comment("The max energy amount for the drill")
.defineInRange("Drill Max Energy", 250000, 0, 1000000);
drillSpecialBlockWhitelist = COMMON_BUILDER
.comment("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.")
.define("Drill special block whitelist", ImmutableList.of("examplemod:block_one"));
}
}