Layer - McMellonTeam/easierworldcreator GitHub Wiki
BlockLayer
Base
a BlockLayer
is basically a layer of BlockStates
.
It is defined by a list of BlockStates and an int that represents the depth of the layer.
It is the pillar of the shape generation.
Showcase
For a better visualization, we can take the example of a superflat world
On a superflat world, you can see 3 layers,
- the one on top is composed of grass at a depth of 1 block,
- the second is composed of dirt with a depth of 3 blocks
- then the last is bedrock with 1 block depth
we would have translated that as :
new BlockLayer(List/of(Blocks.GRASS.getDefaultState()),1);
new BlockLayer(List/of(Blocks.DIRT.getDefaultState()),3);
new BlockLayer(List/of(Blocks.BEDROCK.getDefaultState()),1);
each BlockLayers
can of course have multiple BlockStates
Be sure to have a depth always superior or equal to 1, or when placing your structure in the world, your layer wont be placed
Particle Layer
it is basically the same as BlockLayer
except that you use a list of Particle
instead of a list of BlockStates