Lisenochek

Untitled

Sep 10th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. package com.realistic.temperture;
  2.  
  3. import java.util.Random;
  4.  
  5. import org.bukkit.Bukkit;
  6. import org.bukkit.block.Biome;
  7. import org.bukkit.entity.Player;
  8.  
  9. import com.realistic.list.MinecraftList;
  10.  
  11. public class Temperture {
  12.  
  13. private static final Random r = new Random();
  14. private static MinecraftList ml;
  15.  
  16. public Temperture(MinecraftList ml) {
  17. this.ml = ml;
  18. }
  19.  
  20. public static String getBiome(Biome biome) {
  21.  
  22. for (Player p : Bukkit.getOnlinePlayers()) {
  23.  
  24. Biome b = p.getLocation().getBlock().getBiome();
  25.  
  26. if (b == Biome.BEACH) {
  27.  
  28. String s = "+19";
  29. return s;
  30. }
  31.  
  32. if (b == Biome.BIRCH_FOREST) {
  33.  
  34. String s = "+14";
  35. return s;
  36. }
  37.  
  38. if (b == Biome.BIRCH_FOREST_HILLS) {
  39.  
  40. String s = "+11";
  41. return s;
  42. }
  43.  
  44. if (b == Biome.BIRCH_FOREST_HILLS_MOUNTAINS) {
  45.  
  46. String s = "+12";
  47. return s;
  48. }
  49.  
  50. if (b == Biome.BIRCH_FOREST_MOUNTAINS) {
  51.  
  52. String s = "+13";
  53. return s;
  54. }
  55.  
  56. if (b == Biome.COLD_BEACH) {
  57.  
  58. String s = "+5";
  59. return s;
  60. }
  61.  
  62. if (b == Biome.COLD_TAIGA) {
  63.  
  64. String s = "-10";
  65. return s;
  66. }
  67.  
  68. if (b == Biome.COLD_TAIGA_HILLS) {
  69.  
  70. String s = "-11";
  71. return s;
  72. }
  73.  
  74. if (b == Biome.COLD_TAIGA_MOUNTAINS) {
  75.  
  76. String s = "-9";
  77. return s;
  78. }
  79.  
  80. if (b == Biome.DEEP_OCEAN) {
  81.  
  82. String s = "-5";
  83. return s;
  84. }
  85.  
  86. if (b == Biome.DESERT) {
  87.  
  88. String s = "+35";
  89. return s;
  90. }
  91.  
  92. if (b == Biome.DESERT_HILLS) {
  93.  
  94. String s = "+36";
  95. return s;
  96. }
  97.  
  98. if (b == Biome.DESERT_MOUNTAINS) {
  99.  
  100. String s = "+40";
  101. return s;
  102. }
  103.  
  104. if (b == Biome.EXTREME_HILLS) {
  105.  
  106. String s = "-19";
  107. return s;
  108. }
  109.  
  110. if (b == Biome.EXTREME_HILLS_MOUNTAINS) {
  111.  
  112. String s = "-20";
  113. return s;
  114. }
  115.  
  116. if (b == Biome.EXTREME_HILLS_PLUS) {
  117.  
  118. String s = "-21";
  119. return s;
  120. }
  121.  
  122. if (b == Biome.EXTREME_HILLS_PLUS_MOUNTAINS) {
  123.  
  124. String s = "-18";
  125. return s;
  126. }
  127.  
  128. if (b == Biome.FLOWER_FOREST) {
  129.  
  130. String s = "+14";
  131. return s;
  132. }
  133.  
  134. if (b == Biome.FOREST) {
  135.  
  136. String s = "+16";
  137.  
  138. ml.Temp.put(p.getName(), true);
  139.  
  140. return s;
  141. }
  142.  
  143. if (b == Biome.FOREST_HILLS) {
  144.  
  145. String s = "+15";
  146. return s;
  147. }
  148.  
  149. if (b == Biome.FROZEN_OCEAN) {
  150.  
  151. String s = "-17";
  152. return s;
  153. }
  154.  
  155. if (b == Biome.FROZEN_RIVER) {
  156.  
  157. String s = "-16";
  158. return s;
  159. }
  160.  
  161. if (b == Biome.HELL) {
  162.  
  163. String s = "+50";
  164. return s;
  165. }
  166.  
  167. if (b == Biome.ICE_MOUNTAINS) {
  168.  
  169. String s = "-28";
  170. return s;
  171. }
  172.  
  173. if (b == Biome.ICE_PLAINS) {
  174.  
  175. String s = "-30";
  176. return s;
  177. }
  178.  
  179. if (b == Biome.ICE_PLAINS_SPIKES) {
  180.  
  181. String s = "-31";
  182. return s;
  183. }
  184.  
  185. if (b == Biome.JUNGLE) {
  186.  
  187. String s = "+28";
  188. return s;
  189. }
  190.  
  191. if (b == Biome.JUNGLE_EDGE) {
  192.  
  193. String s = "+27";
  194. return s;
  195. }
  196.  
  197. if (b == Biome.JUNGLE_EDGE_MOUNTAINS) {
  198.  
  199. String s = "+24";
  200. return s;
  201. }
  202.  
  203. if (b == Biome.JUNGLE_HILLS) {
  204.  
  205. String s = "+26";
  206. return s;
  207. }
  208.  
  209. if (b == Biome.JUNGLE_MOUNTAINS) {
  210.  
  211. String s = "+23";
  212. return s;
  213. }
  214.  
  215. if (b == Biome.MEGA_SPRUCE_TAIGA) {
  216.  
  217. String s = "-17";
  218. return s;
  219. }
  220.  
  221. if (b == Biome.MEGA_SPRUCE_TAIGA_HILLS) {
  222.  
  223. String s = "-16";
  224. return s;
  225. }
  226.  
  227. if (b == Biome.MEGA_TAIGA) {
  228.  
  229. String s = "-18";
  230. return s;
  231. }
  232.  
  233. if (b == Biome.MEGA_TAIGA_HILLS) {
  234.  
  235. String s = "-19";
  236. return s;
  237. }
  238.  
  239. if (b == Biome.MESA) {
  240.  
  241. String s = "+19";
  242. return s;
  243. }
  244.  
  245. if (b == Biome.MESA_BRYCE) {
  246.  
  247. String s = "+20";
  248. return s;
  249. }
  250.  
  251. if (b == Biome.MESA_PLATEAU) {
  252.  
  253. String s = "+21";
  254. return s;
  255. }
  256.  
  257. if (b == Biome.MESA_PLATEAU_FOREST) {
  258.  
  259. String s = "+18";
  260. return s;
  261. }
  262.  
  263. if (b == Biome.MESA_PLATEAU_FOREST_MOUNTAINS) {
  264.  
  265. String s = "+16";
  266. return s;
  267. }
  268.  
  269. if (b == Biome.MESA_PLATEAU_MOUNTAINS) {
  270.  
  271. String s = "+20";
  272. return s;
  273. }
  274.  
  275. if (b == Biome.MUSHROOM_ISLAND) {
  276.  
  277. String s = "+12";
  278. return s;
  279. }
  280.  
  281. if (b == Biome.MUSHROOM_SHORE) {
  282.  
  283. String s = "+13";
  284. return s;
  285. }
  286.  
  287. if (b == Biome.OCEAN) {
  288.  
  289. String s = "+22";
  290. return s;
  291. }
  292.  
  293. if (b == Biome.PLAINS) {
  294.  
  295. ml.Temp.put(p.getName(), true);
  296.  
  297. String s = "+17";
  298. return s;
  299. }
  300.  
  301. if (b == Biome.RIVER) {
  302.  
  303. String s = "+16";
  304. return s;
  305. }
  306.  
  307. if (b == Biome.ROOFED_FOREST) {
  308.  
  309. String s = "+16";
  310. return s;
  311. }
  312.  
  313. if (b == Biome.ROOFED_FOREST_MOUNTAINS) {
  314.  
  315. String s = "+17";
  316. return s;
  317. }
  318.  
  319. if (b == Biome.SAVANNA) {
  320.  
  321. String s = "+25";
  322. return s;
  323. }
  324.  
  325. if (b == Biome.SAVANNA_MOUNTAINS) {
  326.  
  327. String s = "+26";
  328. return s;
  329. }
  330.  
  331. if (b == Biome.SAVANNA_PLATEAU) {
  332.  
  333. String s = "+24";
  334. return s;
  335. }
  336.  
  337. if (b == Biome.SAVANNA_PLATEAU_MOUNTAINS) {
  338.  
  339. String s = "+25";
  340. return s;
  341. }
  342.  
  343. if (b == Biome.SKY) {
  344.  
  345. String s = "0";
  346. return s;
  347. }
  348.  
  349. if (b == Biome.SMALL_MOUNTAINS) {
  350.  
  351. String s = "-19";
  352. return s;
  353. }
  354.  
  355. if (b == Biome.STONE_BEACH) {
  356.  
  357. String s = "+5";
  358. return s;
  359. }
  360.  
  361. if (b == Biome.SUNFLOWER_PLAINS) {
  362.  
  363. String s = "+16";
  364. return s;
  365. }
  366.  
  367. if (b == Biome.SWAMPLAND) {
  368.  
  369. String s = "+13";
  370. return s;
  371. }
  372.  
  373. if (b == Biome.SWAMPLAND_MOUNTAINS) {
  374.  
  375. String s = "+12";
  376. return s;
  377. }
  378.  
  379. if (b == Biome.TAIGA) {
  380.  
  381. String s = "-17";
  382. return s;
  383. }
  384.  
  385. if (b == Biome.TAIGA_HILLS) {
  386.  
  387. String s = "-18";
  388. return s;
  389. }
  390.  
  391. if (b == Biome.TAIGA_MOUNTAINS) {
  392.  
  393. String s = "-16";
  394. return s;
  395. }
  396. }
  397. return null;
  398. }
  399. }
Add Comment
Please, Sign In to add comment