public class MesaSurfaceDecorator extends DepthNoiseDecorator
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MesaSurfaceDecorator.Band |
Decorator.SkipRegistrationAsPopulatorPopulator.SkipRegistrationAsFinisher| Modifier and Type | Field and Description |
|---|---|
protected static int |
BAND_COUNT |
protected static int |
BAND_MASK |
protected net.daporkchop.lib.noise.NoiseSource |
bandOffset |
protected NoiseGenerator |
bandOffsetNoise |
protected BlockState[] |
bands |
protected ConstantBlock |
base |
protected BlockState |
ground |
static Identifier |
ID |
protected MesaSurfaceDecorator.Band[] |
layers |
protected int |
seaLevel |
DEPTH_NOISE, depthNoise, depthNoiseFactor, depthNoiseOffset, depthNoiseScale, randomFactorEMPTY_ARRAY| Constructor and Description |
|---|
MesaSurfaceDecorator() |
| Modifier and Type | Method and Description |
|---|---|
void |
decorate(net.daporkchop.lib.random.PRandom random,
IChunk chunk,
int x,
int z)
Decorates a given chunk.
|
protected BlockState |
getBand(int x,
int y,
int z) |
Identifier |
getId() |
protected void |
init0(long levelSeed,
long localSeed,
StandardGenerator generator) |
getDepthNoise, getDepthNoiseinit, setSeedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, populateinitpublic static final Identifier ID
protected static final int BAND_COUNT
protected static final int BAND_MASK
protected BlockState ground
protected int seaLevel
protected net.daporkchop.lib.noise.NoiseSource bandOffset
protected BlockState[] bands
protected ConstantBlock base
protected MesaSurfaceDecorator.Band[] layers
protected NoiseGenerator bandOffsetNoise
protected void init0(long levelSeed,
long localSeed,
StandardGenerator generator)
init0 in class DepthNoiseDecoratorpublic void decorate(net.daporkchop.lib.random.PRandom random,
IChunk chunk,
int x,
int z)
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 decorateprotected BlockState getBand(int x, int y, int z)
public Identifier getId()
Copyright © 2020. All rights reserved.