import com.irtimaled.bbor.common.models.BoundingBox;
import com.irtimaled.bbor.common.models.BoundingBoxWorldSpawn;
import com.irtimaled.bbor.config.ConfigManager;
+import com.irtimaled.bbor.config.Setting;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.entity.player.EntityPlayer;
public static KeyBinding OuterBoxOnlyHotKey = new KeyBinding("Toggle Display Outer Box Only", 0x4f, KeyCategory);
private boolean active;
- private boolean outerBoxOnly;
private ClientRenderer renderer;
@Override
PlayerData.setPlayerPosition(partialTicks, entityPlayer);
if (this.active) {
- renderer.render(DimensionType.getById(entityPlayer.dimension), outerBoxOnly);
+ renderer.render(DimensionType.getById(entityPlayer.dimension), ConfigManager.outerBoxesOnly.get());
}
}
if (active)
PlayerData.setActiveY();
} else if (OuterBoxOnlyHotKey.isPressed()) {
- outerBoxOnly = !outerBoxOnly;
+ Setting<Boolean> outerBoxesOnly = ConfigManager.outerBoxesOnly;
+ outerBoxesOnly.set(!outerBoxesOnly.get());
}
}
public static Setting<Boolean> renderMobSpawnerSpawnArea;
public static Setting<Boolean> renderMobSpawnerActivationLines;
public static Setting<Boolean> drawPillagerOutposts;
+ public static Setting<Boolean> outerBoxesOnly;
public static void loadConfig(File mcConfigDir) {
configDir = new File(mcConfigDir, "config");
Configuration config = loadConfig();
fill = setup(config, "general", "fill", true, "If set to true the bounding boxes are filled.");
+ outerBoxesOnly = setup(config, "general", "outerBoxesOnly", false, "If set to true only the outer bounding boxes are rendered.");
alwaysVisible = setup(config, "general", "alwaysVisible", false, "If set to true boxes will be visible even through other blocks.");
keepCacheBetweenSessions = setup(config, "general", "keepCacheBetweenSessions", false, "If set to true bounding box caches will be kept between sessions.");