Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.realistic.temperture;
- import java.util.Random;
- import org.bukkit.Bukkit;
- import org.bukkit.block.Biome;
- import org.bukkit.entity.Player;
- import com.realistic.list.MinecraftList;
- public class Temperture {
- private static final Random r = new Random();
- private static MinecraftList ml;
- public Temperture(MinecraftList ml) {
- this.ml = ml;
- }
- public static String getBiome(Biome biome) {
- for (Player p : Bukkit.getOnlinePlayers()) {
- Biome b = p.getLocation().getBlock().getBiome();
- if (b == Biome.BEACH) {
- String s = "+19";
- return s;
- }
- if (b == Biome.BIRCH_FOREST) {
- String s = "+14";
- return s;
- }
- if (b == Biome.BIRCH_FOREST_HILLS) {
- String s = "+11";
- return s;
- }
- if (b == Biome.BIRCH_FOREST_HILLS_MOUNTAINS) {
- String s = "+12";
- return s;
- }
- if (b == Biome.BIRCH_FOREST_MOUNTAINS) {
- String s = "+13";
- return s;
- }
- if (b == Biome.COLD_BEACH) {
- String s = "+5";
- return s;
- }
- if (b == Biome.COLD_TAIGA) {
- String s = "-10";
- return s;
- }
- if (b == Biome.COLD_TAIGA_HILLS) {
- String s = "-11";
- return s;
- }
- if (b == Biome.COLD_TAIGA_MOUNTAINS) {
- String s = "-9";
- return s;
- }
- if (b == Biome.DEEP_OCEAN) {
- String s = "-5";
- return s;
- }
- if (b == Biome.DESERT) {
- String s = "+35";
- return s;
- }
- if (b == Biome.DESERT_HILLS) {
- String s = "+36";
- return s;
- }
- if (b == Biome.DESERT_MOUNTAINS) {
- String s = "+40";
- return s;
- }
- if (b == Biome.EXTREME_HILLS) {
- String s = "-19";
- return s;
- }
- if (b == Biome.EXTREME_HILLS_MOUNTAINS) {
- String s = "-20";
- return s;
- }
- if (b == Biome.EXTREME_HILLS_PLUS) {
- String s = "-21";
- return s;
- }
- if (b == Biome.EXTREME_HILLS_PLUS_MOUNTAINS) {
- String s = "-18";
- return s;
- }
- if (b == Biome.FLOWER_FOREST) {
- String s = "+14";
- return s;
- }
- if (b == Biome.FOREST) {
- String s = "+16";
- ml.Temp.put(p.getName(), true);
- return s;
- }
- if (b == Biome.FOREST_HILLS) {
- String s = "+15";
- return s;
- }
- if (b == Biome.FROZEN_OCEAN) {
- String s = "-17";
- return s;
- }
- if (b == Biome.FROZEN_RIVER) {
- String s = "-16";
- return s;
- }
- if (b == Biome.HELL) {
- String s = "+50";
- return s;
- }
- if (b == Biome.ICE_MOUNTAINS) {
- String s = "-28";
- return s;
- }
- if (b == Biome.ICE_PLAINS) {
- String s = "-30";
- return s;
- }
- if (b == Biome.ICE_PLAINS_SPIKES) {
- String s = "-31";
- return s;
- }
- if (b == Biome.JUNGLE) {
- String s = "+28";
- return s;
- }
- if (b == Biome.JUNGLE_EDGE) {
- String s = "+27";
- return s;
- }
- if (b == Biome.JUNGLE_EDGE_MOUNTAINS) {
- String s = "+24";
- return s;
- }
- if (b == Biome.JUNGLE_HILLS) {
- String s = "+26";
- return s;
- }
- if (b == Biome.JUNGLE_MOUNTAINS) {
- String s = "+23";
- return s;
- }
- if (b == Biome.MEGA_SPRUCE_TAIGA) {
- String s = "-17";
- return s;
- }
- if (b == Biome.MEGA_SPRUCE_TAIGA_HILLS) {
- String s = "-16";
- return s;
- }
- if (b == Biome.MEGA_TAIGA) {
- String s = "-18";
- return s;
- }
- if (b == Biome.MEGA_TAIGA_HILLS) {
- String s = "-19";
- return s;
- }
- if (b == Biome.MESA) {
- String s = "+19";
- return s;
- }
- if (b == Biome.MESA_BRYCE) {
- String s = "+20";
- return s;
- }
- if (b == Biome.MESA_PLATEAU) {
- String s = "+21";
- return s;
- }
- if (b == Biome.MESA_PLATEAU_FOREST) {
- String s = "+18";
- return s;
- }
- if (b == Biome.MESA_PLATEAU_FOREST_MOUNTAINS) {
- String s = "+16";
- return s;
- }
- if (b == Biome.MESA_PLATEAU_MOUNTAINS) {
- String s = "+20";
- return s;
- }
- if (b == Biome.MUSHROOM_ISLAND) {
- String s = "+12";
- return s;
- }
- if (b == Biome.MUSHROOM_SHORE) {
- String s = "+13";
- return s;
- }
- if (b == Biome.OCEAN) {
- String s = "+22";
- return s;
- }
- if (b == Biome.PLAINS) {
- ml.Temp.put(p.getName(), true);
- String s = "+17";
- return s;
- }
- if (b == Biome.RIVER) {
- String s = "+16";
- return s;
- }
- if (b == Biome.ROOFED_FOREST) {
- String s = "+16";
- return s;
- }
- if (b == Biome.ROOFED_FOREST_MOUNTAINS) {
- String s = "+17";
- return s;
- }
- if (b == Biome.SAVANNA) {
- String s = "+25";
- return s;
- }
- if (b == Biome.SAVANNA_MOUNTAINS) {
- String s = "+26";
- return s;
- }
- if (b == Biome.SAVANNA_PLATEAU) {
- String s = "+24";
- return s;
- }
- if (b == Biome.SAVANNA_PLATEAU_MOUNTAINS) {
- String s = "+25";
- return s;
- }
- if (b == Biome.SKY) {
- String s = "0";
- return s;
- }
- if (b == Biome.SMALL_MOUNTAINS) {
- String s = "-19";
- return s;
- }
- if (b == Biome.STONE_BEACH) {
- String s = "+5";
- return s;
- }
- if (b == Biome.SUNFLOWER_PLAINS) {
- String s = "+16";
- return s;
- }
- if (b == Biome.SWAMPLAND) {
- String s = "+13";
- return s;
- }
- if (b == Biome.SWAMPLAND_MOUNTAINS) {
- String s = "+12";
- return s;
- }
- if (b == Biome.TAIGA) {
- String s = "-17";
- return s;
- }
- if (b == Biome.TAIGA_HILLS) {
- String s = "-18";
- return s;
- }
- if (b == Biome.TAIGA_MOUNTAINS) {
- String s = "-16";
- return s;
- }
- }
- return null;
- }
- }
Add Comment
Please, Sign In to add comment