public interface ICubicPopulator
CubeGeneratorsRegistry to launch them
single time for each generated cube right after terrain and biome specific
generators.| Modifier and Type | Method and Description |
|---|---|
void |
generate(net.minecraft.world.World world,
java.util.Random random,
CubePos pos,
net.minecraft.world.biome.Biome biome)
Generate a specific populator feature for a given cube given a biome.
|
void generate(net.minecraft.world.World world,
java.util.Random random,
CubePos pos,
net.minecraft.world.biome.Biome biome)
int x = random.nextInt(16) + 8 + pos.getXCenter();
You can also use CubePos.randomPopulationPos(java.util.Random) to generate random position in population space.
All block access should be done through the provided ICubicWorld instance.random - the cube specific Random.pos - is the position of the cube being populated BlockPos.world - The ICubicWorld we're generating for. Casting it to World is always safe.biome - The biome the populator is working in.