old-bugs

Minecraft: Better than Adventure! mod that brings back bugs from older versions
git clone git://memoryshards.xyz/old-bugs.git
Log | Files | Refs | README | LICENSE

OldBugs.java (1990B)


      1 package ambos.oldbugs;
      2 
      3 import org.slf4j.Logger;
      4 import org.slf4j.LoggerFactory;
      5 
      6 import net.fabricmc.api.ModInitializer;
      7 import turniplabs.halplibe.util.TomlConfigHandler;
      8 import turniplabs.halplibe.util.toml.Toml;
      9 
     10 public class OldBugs implements ModInitializer {
     11     public static final String MOD_ID = "oldbugs";
     12     public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
     13     public static final TomlConfigHandler CONFIG;
     14     public static final boolean OLD_FIRE_SPREAD;
     15     public static final boolean BOAT_ELEVATORS;
     16     public static final boolean LADDERS_GAPS;
     17     public static final boolean MINECART_BOOSTERS;
     18     public static final boolean SOUTH_WEST_RULE_LIQUIDS;
     19     public static final int FIRE_TICK_RATE;
     20     static {
     21         Toml toml = new Toml();
     22         toml.addCategory("Bugs");
     23         toml.addEntry("Bugs.old_fire_spread", "Restores fast and large fire spread", true);
     24         toml.addEntry("Bugs.boat_elevators", "Restores boat elevators", true);
     25         toml.addEntry("Bugs.ladders_gaps", "Restores ladders gaps", true);
     26         toml.addEntry("Bugs.minecart_boosters", "Restores minecart boosters", true);
     27         toml.addEntry("Bugs.south_west_rule_liquids", "Restores south-west rule for water and lava", true);
     28         toml.addCategory("Settings");
     29         toml.addEntry("Settings.fire_tick_rate", "Sets fire tick rate (requires 'old_fire_spread = true')", 10);
     30 
     31         CONFIG = new TomlConfigHandler(MOD_ID, toml);
     32         OLD_FIRE_SPREAD = CONFIG.getBoolean("Bugs.old_fire_spread");
     33         BOAT_ELEVATORS = CONFIG.getBoolean("Bugs.boat_elevators");
     34         LADDERS_GAPS = CONFIG.getBoolean("Bugs.ladders_gaps");
     35         MINECART_BOOSTERS = CONFIG.getBoolean("Bugs.minecart_boosters");
     36         SOUTH_WEST_RULE_LIQUIDS = CONFIG.getBoolean("Bugs.south_west_rule_liquids");
     37         FIRE_TICK_RATE = CONFIG.getInt("Settings.fire_tick_rate");
     38     }
     39 
     40     @Override
     41     public void onInitialize() {
     42         LOGGER.info("Old Bugs initialized");
     43     }
     44 }