Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void replacechunks()
- {
- Field biomesField = null;
- try
- {
- biomesField = BiomeBase.class.getDeclaredField("biomes");
- }
- catch (NoSuchFieldException e)
- {
- e.printStackTrace();
- }
- catch (SecurityException e)
- {
- e.printStackTrace();
- }
- biomesField.setAccessible(true);
- try
- {
- if ((biomesField.get(null) instanceof BiomeBase[]))
- {
- BiomeBase[] biomes = (BiomeBase[])biomesField.get(null);
- biomes[BiomeBase.BEACH.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.BIRCH_FOREST_HILLS.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.COLD_BEACH.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.COLD_TAIGA.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.COLD_TAIGA_HILLS.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.DEEP_OCEAN.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.FROZEN_OCEAN.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.FROZEN_RIVER.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.ICE_MOUNTAINS.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.ICE_PLAINS.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.JUNGLE.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.JUNGLE_EDGE.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.JUNGLE_HILLS.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.MEGA_TAIGA.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.MEGA_TAIGA_HILLS.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.MESA.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.MESA_PLATEAU.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.MESA_PLATEAU_F.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.MUSHROOM_ISLAND.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.MUSHROOM_SHORE.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.OCEAN.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.ROOFED_FOREST.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.SAVANNA_PLATEAU.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.TAIGA.id] = BiomeBase.PLAINS;
- biomes[BiomeBase.TAIGA_HILLS.id] = BiomeBase.PLAINS;
- }
- }
- catch (IllegalArgumentException e)
- {
- e.printStackTrace();
- }
- catch (IllegalAccessException e)
- {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment