2019-09-10 22:51:26 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.tuple.Pair;
|
|
|
|
|
|
|
|
import net.minecraftforge.common.ForgeConfigSpec;
|
2019-09-18 11:16:57 +02:00
|
|
|
import net.minecraftforge.common.ForgeConfigSpec.BooleanValue;
|
2019-09-10 22:51:26 +02:00
|
|
|
|
|
|
|
public class CreateClientConfig {
|
|
|
|
|
|
|
|
public static final ForgeConfigSpec specification;
|
|
|
|
public static final CreateClientConfig instance;
|
|
|
|
|
|
|
|
static {
|
|
|
|
final Pair<CreateClientConfig, ForgeConfigSpec> specPair = new ForgeConfigSpec.Builder()
|
|
|
|
.configure(CreateClientConfig::new);
|
|
|
|
|
|
|
|
specification = specPair.getRight();
|
|
|
|
instance = specPair.getLeft();
|
|
|
|
}
|
|
|
|
|
2019-09-18 11:16:57 +02:00
|
|
|
public BooleanValue enableTooltips;
|
|
|
|
|
2019-09-10 22:51:26 +02:00
|
|
|
CreateClientConfig(final ForgeConfigSpec.Builder builder) {
|
2019-09-18 11:16:57 +02:00
|
|
|
builder.comment("Client-only settings - If you're looking for server/common settings, look inside your worlds serverconfig folder!").push("client");
|
|
|
|
String basePath = "create.config.client.";
|
|
|
|
|
|
|
|
String name = "enableTooltips";
|
|
|
|
enableTooltips = builder.comment("", "Show item descriptions on Shift and controls on Ctrl.")
|
|
|
|
.translation(basePath + name).define(name, true);
|
2019-09-10 22:51:26 +02:00
|
|
|
|
|
|
|
builder.pop();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|