/// <reference types="../../../../CTAutocomplete" />
/// <reference lib="es2015" />
import { f, m } from "../../../mappings/mappings";
import Feature from "../../featureClass/class";
import { addNotation, numberWithCommas } from "../../utils/numberUtils";
import * as renderUtils from "../../utils/renderUtils";
import HudTextElement from "../hud/HudTextElement";
import LocationSetting from "../settings/settingThings/location";
import ToggleSetting from "../settings/settingThings/toggle";
import TextSetting from "../settings/settingThings/textSetting";
import { delay } from "../../utils/delayUtils";
import { Waypoint } from "../../utils/renderJavaUtils";
import { calculateDistanceQuick } from "../../utils/utils";
import { drawLinePoints } from "../../utils/renderUtils";
const entityGuardian = Java.type("net.minecraft.entity.monster.EntityGuardian")
const MCBlock = Java.type("net.minecraft.block.Block");
const EntityBlaze = Java.type("net.minecraft.entity.monster.EntityBlaze");
let translate;
try {
translate = net.minecraft.util.StringTranslate.func_74808_a();
} catch (e) {
//player doesent have translate (using english default)
}
let wrongColorList = {
"light grey": "silver",
"wool": "white wool",
"ink": "black ink",
"lapis": "blue lapis",
"cocoa": "brown cocoa"
}
class DungeonSolvers extends Feature {
constructor() {
super();
}
isInDungeon() {
if (!this.FeatureManager || !this.FeatureManager.features["dataLoader"]) return false
return this.FeatureManager.features["dataLoader"].class.isInDungeon
}
onEnable() {
this.initVariables();
this.lividData = {};
this.lividData.lividColor = {
Vendetta: "&f",
Crossed: "&d",
Hockey: "&c",
Doctor: "&7",
Frog: "&2",
Smile: "&a",
Scream: "&9",
Purple: "&5",
Arcade: "&e",
};
this.bonzoMaskTimer = 0;
this.fraggedBonzoMaskTimer = 0;
this.spiritMaskTimer = 0;
this.eraseBonzoTimer = true;
this.bonzoMaskCooldown = 0;
this.lastWorldload = Date.now()
this.lividFindEnabled = new ToggleSetting("Correct livid finder",