Created
June 6, 2014 19:20
-
-
Save DarkSeraphim/e1a130b0fec9186c0b02 to your computer and use it in GitHub Desktop.
Much empty such space wow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package net.darkseraphim.dungeons.util; | |
| import org.bukkit.World; | |
| import org.bukkit.generator.BlockPopulator; | |
| import org.bukkit.generator.ChunkGenerator; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Random; | |
| /** | |
| * @Author DarkSeraphim | |
| */ | |
| public class EmptyChunkGenerator extends ChunkGenerator | |
| { | |
| @Override | |
| public byte[][] generateBlockSections(World world, Random random, int cx, int cy, BiomeGrid grid) | |
| { | |
| return new byte[world.getMaxHeight()/16][4096]; | |
| } | |
| @Override | |
| public short[][] generateExtBlockSections(World world, Random random, int cx, int cy, BiomeGrid grid) | |
| { | |
| return new short[world.getMaxHeight()/16][4096]; | |
| } | |
| public List<BlockPopulator> getDefaultPopulators() | |
| { | |
| return new ArrayList<BlockPopulator>(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment