Java Code Examples for org.bukkit.World#regenerateChunk()
The following examples show how to use
org.bukkit.World#regenerateChunk() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DeleteIslandChunk.java From askyblock with GNU General Public License v2.0 | 6 votes |
private void regenerate(World world, Pair<Integer, Integer> minWholeChunk, Pair<Integer, Integer> maxWholeChunk, Pair<Integer, Integer> minChunk, Pair<Integer, Integer> maxChunk) { for (int i = minChunk.x; i <= maxChunk.x; i++) { for (int j = minChunk.z; j <= maxChunk.z; j++) { if (i >= minWholeChunk.x && i <= maxWholeChunk.x && j >= minWholeChunk.z && j <= maxWholeChunk.z) { world.regenerateChunk(i, j); if (Settings.newNether && Settings.createNether) { if (world.equals(ASkyBlock.getIslandWorld())) { ASkyBlock.getNetherWorld().regenerateChunk(i, j); } if (world.equals(ASkyBlock.getNetherWorld())) { ASkyBlock.getIslandWorld().regenerateChunk(i, j); } } } else { chunksToClear.add(new Pair<>(i, j)); } } } }
Example 2
Source File: BukkitQueue_0.java From FastAsyncWorldedit with GNU General Public License v3.0 | 4 votes |
@Override public boolean regenerateChunk(World world, int x, int z, BaseBiome biome, Long seed) { if (!keepLoaded.isEmpty()) keepLoaded.remove(MathMan.pairInt(x, z)); boolean result = world.regenerateChunk(x, z); return result; }
Example 3
Source File: DebugCommand.java From civcraft with GNU General Public License v2.0 | 3 votes |
public void regenchunk_cmd() { World world = Bukkit.getWorld("world"); for(ChunkCoord coord : CivGlobal.preGenerator.goodPicks.keySet()) { world.regenerateChunk(coord.getX(), coord.getZ()); CivMessage.send(sender, "Regened:"+coord); } }