Skip to content

Instantly share code, notes, and snippets.

@md-5
Created March 11, 2012 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save md-5/2018310 to your computer and use it in GitHub Desktop.
Save md-5/2018310 to your computer and use it in GitHub Desktop.
@Override
public byte[][] generateBlockSections(World world, Random random, int x1, int z1, BiomeGrid biomes) {
byte[][] bytes = new byte[16][16 * 16 * 16];
for (int i = 0; i <= 16; i++) {
int index = 0;
for (int x = 0; x <= 16; x++) {
for (int z = 0; z <= 16; z++) {
for (int y = 0; y <= 16; y++) {
bytes[i][index] = 1;
index++;
}
}
}
}
return bytes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment