public class GroundCoverDecorator extends Object implements Decorator
Basically equivalent to the "surface" value in SurfaceDecorator.
Decorator.SkipRegistrationAsPopulatorPopulator.SkipRegistrationAsFinisher| Modifier and Type | Field and Description |
|---|---|
protected double |
chance |
protected BlockSelector |
cover |
static Identifier |
ID |
protected BlockFilter |
on |
protected BlockFilter |
replace |
EMPTY_ARRAY| Constructor and Description |
|---|
GroundCoverDecorator() |
| Modifier and Type | Method and Description |
|---|---|
void |
decorate(net.daporkchop.lib.random.PRandom random,
IChunk chunk,
int x,
int z)
Decorates a given chunk.
|
Identifier |
getId() |
void |
init(long levelSeed,
long localSeed,
StandardGenerator generator)
Prepares this instance for actual generation.
|
public static final Identifier ID
protected BlockFilter on
protected BlockFilter replace
protected double chance
protected BlockSelector cover
public void init(long levelSeed,
long localSeed,
StandardGenerator generator)
GenerationPassinit in interface GenerationPasslevelSeed - the level seed, as defined in cloudburst.ymllocalSeed - a seed defined specifically for this generation passgenerator - the instance of StandardGenerator that this generation pass will be used bypublic void decorate(net.daporkchop.lib.random.PRandom random,
IChunk chunk,
int x,
int z)
Decoratordecorate in interface Decoratorrandom - an instance of PRandom for generating random numbers, initialized with a seed based on chunk's positionchunk - the chunk to be decoratedx - the X coordinate of the block column in the chunk to decoratez - the Z coordinate of the block column in the chunk to decoratepublic Identifier getId()
Copyright © 2020. All rights reserved.