Created
April 21, 2019 19:25
-
-
Save NeusFear/86bef9ef2123cbf9f8354a536291014a to your computer and use it in GitHub Desktop.
This file contains 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
@Override | |
public void populate(World world, MutableBlockVolume buffer, ImmutableBiomeVolume biomes) { | |
for (int x = buffer.getBlockMin().getX(); x <= buffer.getBlockMax().getX(); x++) { | |
for (int z = buffer.getBlockMin().getZ(); z <= buffer.getBlockMax().getZ(); z++) { | |
if(draw(x) && draw(z)) { | |
for(int y = getDefaultDepth(x, z); y < getDefaultHeight(x, z); y++) { | |
if (genYet(x, z)) { | |
buffer.setBlockType(x, y, z, BlockTypes.STONE); | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment