export var BiomeTemps;
(function (BiomeTemps) {
    BiomeTemps[BiomeTemps["Hell"] = 60] = "Hell";
    BiomeTemps[BiomeTemps["VeryHot"] = 40] = "VeryHot";
    BiomeTemps[BiomeTemps["Hot"] = 30] = "Hot";
    BiomeTemps[BiomeTemps["Warm"] = 25] = "Warm";
    BiomeTemps[BiomeTemps["Optimal"] = 20] = "Optimal";
    BiomeTemps[BiomeTemps["Cool"] = 15] = "Cool";
    BiomeTemps[BiomeTemps["Cold"] = 8] = "Cold";
    BiomeTemps[BiomeTemps["VeryCold"] = 0] = "VeryCold";
})(BiomeTemps || (BiomeTemps = {}));
;
const Biomes = [
    { typeId: "bamboo_jungle", id: 1, temperature: { day: BiomeTemps.Hot, night: BiomeTemps.Warm } },
    { typeId: "bamboo_jungle_hills", id: 2, temperature: { day: BiomeTemps.Hot, night: BiomeTemps.Warm } },
    { typeId: "basalt_deltas", id: 3, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.VeryHot } },
    { typeId: "beach", id: 4, temperature: { day: BiomeTemps.Warm, night: BiomeTemps.Optimal } },
    { typeId: "birch_forest", id: 5, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Optimal } },
    { typeId: "birch_forest_hills", id: 6, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "birch_forest_mutated", id: 7, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Optimal } },
    { typeId: "birch_forest_hills_mutated", id: 8, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "cherry_grove", id: 9, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "cold_beach", id: 10, temperature: { day: BiomeTemps.Cold, night: BiomeTemps.Cold } },
    { typeId: "cold_ocean", id: 11, temperature: { day: BiomeTemps.Cold, night: BiomeTemps.Cold } },
    { typeId: "cold_taiga", id: 12, temperature: { day: BiomeTemps.Cold, night: BiomeTemps.VeryCold } },
    { typeId: "cold_taiga_hills", id: 13, temperature: { day: BiomeTemps.Cold, night: BiomeTemps.VeryCold } },
    { typeId: "cold_taiga_mutated", id: 14, temperature: { day: BiomeTemps.Cold, night: BiomeTemps.VeryCold } },
    { typeId: "crimson_forest", id: 15, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.VeryHot } },
    { typeId: "deep_cold_ocean", id: 16, temperature: { day: BiomeTemps.Cold, night: BiomeTemps.Cold } },
    { typeId: "deep_dark", id: 17, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Optimal } },
    { typeId: "deep_frozen_ocean", id: 18, temperature: { day: BiomeTemps.VeryCold, night: BiomeTemps.VeryCold } },
    { typeId: "deep_lukewarm_ocean", id: 19, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Optimal } },
    { typeId: "deep_ocean", id: 20, temperature: { day: BiomeTemps.Cool, night: BiomeTemps.Cold } },
    { typeId: "deep_warm_ocean", id: 21, temperature: { day: BiomeTemps.Warm, night: BiomeTemps.Warm } },
    { typeId: "desert", id: 22, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.Cold } },
    { typeId: "desert_hills", id: 23, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.Cold } },
    { typeId: "desert_mutated", id: 24, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.Cold } },
    { typeId: "dripstone_caves", id: 25, temperature: { day: BiomeTemps.Cool, night: BiomeTemps.Cool } },
    { typeId: "extreme_hills", id: 26, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "extreme_hills_edge", id: 27, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "extreme_hills_mutated", id: 28, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "extreme_hills_plus_trees", id: 29, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "extreme_hills_plus_trees_mutated", id: 30, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "flower_forest", id: 31, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "forest", id: 32, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "forest_hills", id: 33, temperature: { day: BiomeTemps.Cool, night: BiomeTemps.Cold } },
    { typeId: "frozen_ocean", id: 34, temperature: { day: BiomeTemps.VeryCold, night: BiomeTemps.VeryCold } },
    { typeId: "frozen_peaks", id: 35, temperature: { day: BiomeTemps.VeryCold, night: BiomeTemps.VeryCold } },
    { typeId: "frozen_river", id: 36, temperature: { day: BiomeTemps.VeryCold, night: BiomeTemps.VeryCold } },
    { typeId: "grove", id: 37, temperature: { day: BiomeTemps.Cold, night: BiomeTemps.VeryCold } },
    { typeId: "hell", id: 38, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.VeryHot } },
    { typeId: "ice_mountains", id: 39, temperature: { day: BiomeTemps.VeryCold, night: BiomeTemps.VeryCold } },
    { typeId: "ice_plains", id: 40, temperature: { day: BiomeTemps.Cold, night: BiomeTemps.VeryCold } },
    { typeId: "ice_plains_spikes", id: 41, temperature: { day: BiomeTemps.VeryCold, night: BiomeTemps.VeryCold } },
    { typeId: "jagged_peaks", id: 42, temperature: { day: BiomeTemps.VeryCold, night: BiomeTemps.VeryCold } },
    { typeId: "jungle", id: 43, temperature: { day: BiomeTemps.Hot, night: BiomeTemps.Warm } },
    { typeId: "jungle_edge", id: 44, temperature: { day: BiomeTemps.Hot, night: BiomeTemps.Warm } },
    { typeId: "jungle_edge_mutated", id: 45, temperature: { day: BiomeTemps.Hot, night: BiomeTemps.Warm } },
    { typeId: "jungle_hills", id: 46, temperature: { day: BiomeTemps.Hot, night: BiomeTemps.Warm } },
    { typeId: "jungle_mutated", id: 47, temperature: { day: BiomeTemps.Hot, night: BiomeTemps.Warm } },
    { typeId: "legacy_frozen_ocean", id: 48, temperature: { day: BiomeTemps.VeryCold, night: BiomeTemps.VeryCold } },
    { typeId: "lukewarm_ocean", id: 49, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Optimal } },
    { typeId: "lush_caves", id: 50, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Optimal } },
    { typeId: "mangrove_swamp", id: 51, temperature: { day: BiomeTemps.Warm, night: BiomeTemps.Optimal } },
    { typeId: "meadow", id: 52, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "mega_taiga", id: 53, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "mega_taiga_hills", id: 54, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "mesa", id: 55, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.Cold } },
    { typeId: "mesa_bryce", id: 56, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.Cold } },
    { typeId: "mesa_plateau", id: 57, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.Cold } },
    { typeId: "mesa_plateau_mutated", id: 58, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.Cold } },
    { typeId: "mesa_plateau_stone", id: 59, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.Cold } },
    { typeId: "mesa_plateau_stone_mutated", id: 60, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.Cold } },
    { typeId: "mushroom_island", id: 61, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "mushroom_island_shore", id: 62, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "ocean", id: 63, temperature: { day: BiomeTemps.Cool, night: BiomeTemps.Cold } },
    { typeId: "plains", id: 64, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "redwood_taiga_hills_mutated", id: 65, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "redwood_taiga_mutated", id: 66, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "river", id: 67, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "roofed_forest", id: 68, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "roofed_forest_mutated", id: 69, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "savanna", id: 70, temperature: { day: BiomeTemps.Warm, night: BiomeTemps.Warm } },
    { typeId: "savanna_mutated", id: 71, temperature: { day: BiomeTemps.Warm, night: BiomeTemps.Warm } },
    { typeId: "savanna_plateau", id: 72, temperature: { day: BiomeTemps.Warm, night: BiomeTemps.Warm } },
    { typeId: "savanna_plateau_mutated", id: 73, temperature: { day: BiomeTemps.Warm, night: BiomeTemps.Warm } },
    { typeId: "snowy_slopes", id: 74, temperature: { day: BiomeTemps.Cold, night: BiomeTemps.VeryCold } },
    { typeId: "soulsand_valley", id: 75, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.VeryHot } },
    { typeId: "stone_beach", id: 76, temperature: { day: BiomeTemps.Cool, night: BiomeTemps.Cold } },
    { typeId: "stony_peaks", id: 77, temperature: { day: BiomeTemps.Cold, night: BiomeTemps.Cold } },
    { typeId: "sunflower_plains", id: 78, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cool } },
    { typeId: "swampland", id: 79, temperature: { day: BiomeTemps.Warm, night: BiomeTemps.Optimal } },
    { typeId: "swampland_mutated", id: 80, temperature: { day: BiomeTemps.Warm, night: BiomeTemps.Optimal } },
    { typeId: "taiga", id: 81, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "taiga_hills", id: 82, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "taiga_mutated", id: 83, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } },
    { typeId: "the_end", id: 250, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Optimal } },
    { typeId: "warm_ocean", id: 85, temperature: { day: BiomeTemps.Warm, night: BiomeTemps.Warm } },
    { typeId: "warped_forest", id: 86, temperature: { day: BiomeTemps.VeryHot, night: BiomeTemps.VeryHot } },
];
export const getBiomeFromId = (id) => {
    // world.getAllPlayers()[0].onScreenDisplay.setActionBar((Biomes[Object.entries(Biomes).find(([key, value]) => value.id === id)?.[0]] ?? { typeId: "unknown", id: 255, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } }).typeId);
    return Biomes[Object.entries(Biomes).find(([key, value]) => value.id === id)?.[0]] ?? { typeId: "unknown", id: 255, temperature: { day: BiomeTemps.Optimal, night: BiomeTemps.Cold } };
};
