-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClientConfig.java
33 lines (23 loc) · 945 Bytes
/
ClientConfig.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package org.auioc.mcmod.arnicalib.client.config;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.common.ForgeConfigSpec.BooleanValue;
@OnlyIn(Dist.CLIENT)
public class ClientConfig {
public static final ForgeConfigSpec CONFIG;
public static BooleanValue EnableAdvancedTooltip;
public static BooleanValue AdvancedTooltipOnlyOnDebug;
public static BooleanValue AdvancedTooltipOnlyOnShift;
static {
ForgeConfigSpec.Builder b = new ForgeConfigSpec.Builder();
{
b.push("advanced_tooltip");
EnableAdvancedTooltip = b.define("enable", true);
AdvancedTooltipOnlyOnDebug = b.define("only_on_debug", true);
AdvancedTooltipOnlyOnShift = b.define("only_on_shift", false);
b.pop();
}
CONFIG = b.build();
}
}