Files
EndlessIDs/src/main/java/com/falsepattern/endlessids/config/GeneralConfig.java
T

67 lines
3.2 KiB
Java
Raw Normal View History

package com.falsepattern.endlessids.config;
2022-03-17 15:21:30 +01:00
import com.falsepattern.endlessids.Tags;
2022-06-15 22:28:46 +02:00
import com.falsepattern.lib.config.Config;
2022-08-25 21:10:41 +02:00
import com.falsepattern.lib.config.ConfigurationManager;
2022-03-17 15:21:30 +01:00
2022-06-15 22:28:46 +02:00
@Config(modid = Tags.MODID)
public class GeneralConfig {
2022-08-25 21:10:41 +02:00
static {
ConfigurationManager.selfInit();
}
2023-03-01 21:36:39 +01:00
@Config.Comment("WARNING: THIS CONFIG IS EXTREMELY SENSITIVE TO CHANGES, DISABLING STUFF ONCE THEY HAVE BEEN ENABLED\n" +
"CAN CORRUPT YOUR WORLD! ONLY TOUCH THIS FILE IF YOU KNOW WHAT YOU'RE DOING!\n" +
"This file should only be edited by modpack developers to finetune it for the modpack. Once an option\n" +
"has been enabled, it modifies the chunk save data format, which is (partially) compatible with\n" +
"vanilla, but removing the mod might cause block/item corruption for higher IDs.\n" +
"Additional note: Every client and server must have the exact same config, this also affects netcode.")
@Config.DefaultString("")
public static String __NOTICE__;
@Config.Comment("Throw an exception when an invalid block is registered. FOR DEBUGGING PURPOSES")
2022-08-25 21:10:41 +02:00
@Config.DefaultBoolean(false)
public static boolean catchUnregisteredBlocks;
2022-06-15 22:28:46 +02:00
2023-03-01 21:36:39 +01:00
@Config.Comment("Remove invalid (corrupted) blocks from the game. FOR DEBUGGING PURPOSES")
2022-08-25 21:10:41 +02:00
@Config.DefaultBoolean(false)
public static boolean removeInvalidBlocks;
2022-06-15 22:28:46 +02:00
2023-03-01 21:36:39 +01:00
@Config.Comment("Extend Biome IDs. Vanilla limit is 256, new limit is 65536.")
@Config.DefaultBoolean(true)
public static boolean extendBiome;
@Config.Comment("Extend Block and Item IDs. Vanilla limit is 4096/32000, new limit is 16777216 for both.\n" +
"See also: countCorrectionBits")
@Config.DefaultBoolean(true)
public static boolean extendBlockItem;
@Config.Comment("Extend DataWatcher IDs. Vanilla limit is 31, new limit is 127.\n" +
"Disabled by default because of uncertain/weak implementation (taken from NotEnoughIDs)")
2022-08-25 21:10:41 +02:00
@Config.DefaultBoolean(false)
public static boolean extendDataWatcher;
2022-06-15 22:28:46 +02:00
2023-03-01 21:36:39 +01:00
@Config.Comment("Extend Enchantment IDs. Vanilla limit is 256, new limit is 32768.")
@Config.DefaultBoolean(true)
public static boolean extendEnchantment;
@Config.Comment("Extend Potion IDs. Vanilla limit is 32, new limit is 65536.")
@Config.DefaultBoolean(true)
public static boolean extendPotion;
2022-07-02 20:21:50 +02:00
@Config.Comment(
2023-03-01 21:36:39 +01:00
"Use this to tune the amount of available block IDs.\n" +
"Minecraft contains some internal code that uses a HUGE amount of RAM with too many block IDs available.\n" +
2022-07-02 20:21:50 +02:00
"Notice: This does not affect ITEM IDs.\n" +
2023-03-01 21:36:39 +01:00
"The vanilla default is 4k block IDs, while the maximum is 16 million.\n" +
"The default setting sets it to 4k (vanilla).\n" +
"increase if necessary (when running out of BLOCK IDs in your modpack)\n" +
"Only effective if extendBlockItem is enabled.\n" +
2022-07-02 20:21:50 +02:00
"(0: 16M, 1: 8M, 2: 4M, 3: 2M, 4: 1M, 5: 512K, 6: 256K, 7: 128K, 8: 64K, 9: 32K, 10: 16K, 11: 8K, 12: 4K)\n")
@Config.RangeInt(min = 0,
max = 12)
2023-03-01 21:36:39 +01:00
@Config.DefaultInt(12)
2022-08-25 21:10:41 +02:00
public static int countCorrectionBits;
2023-03-01 22:39:53 +01:00
public static void poke() {
}
2022-03-17 15:21:30 +01:00
}