Class MesaSurfaceDecorator
java.lang.Object
org.cloudburstmc.server.level.generator.standard.misc.AbstractGenerationPass
org.cloudburstmc.server.level.generator.standard.generation.decorator.DepthNoiseDecorator
org.cloudburstmc.server.level.generator.standard.generation.decorator.MesaSurfaceDecorator
- All Implemented Interfaces:
Finisher,Decorator,GenerationPass,Populator
- Author:
- DaPorkchop_
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.cloudburstmc.server.level.generator.standard.generation.decorator.Decorator
Decorator.SkipRegistrationAsPopulatorNested classes/interfaces inherited from interface org.cloudburstmc.server.level.generator.standard.population.Populator
Populator.SkipRegistrationAsFinisher -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intprotected static intprotected net.daporkchop.lib.noise.NoiseSourceprotected NoiseGeneratorprotected org.cloudburstmc.api.block.BlockState[]protected ConstantBlockprotected org.cloudburstmc.api.block.BlockStatestatic org.cloudburstmc.api.util.Identifierprotected MesaSurfaceDecorator.Band[]protected intFields inherited from class org.cloudburstmc.server.level.generator.standard.generation.decorator.DepthNoiseDecorator
DEPTH_NOISE, depthNoise, depthNoiseFactor, depthNoiseOffset, depthNoiseScale, randomFactorFields inherited from interface org.cloudburstmc.server.level.generator.standard.generation.decorator.Decorator
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecorate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.chunk.Chunk chunk, int x, int z)Decorates a given chunk.protected org.cloudburstmc.api.block.BlockStategetBand(int x, int y, int z)org.cloudburstmc.api.util.IdentifiergetId()protected voidinit0(long levelSeed, long localSeed, StandardGenerator generator)Methods inherited from class org.cloudburstmc.server.level.generator.standard.generation.decorator.DepthNoiseDecorator
getDepthNoise, getDepthNoiseMethods inherited from class org.cloudburstmc.server.level.generator.standard.misc.AbstractGenerationPass
init, setSeedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.server.level.generator.standard.generation.decorator.Decorator
finish, populateMethods inherited from interface org.cloudburstmc.server.level.generator.standard.misc.GenerationPass
init
-
Field Details
-
ID
public static final org.cloudburstmc.api.util.Identifier ID -
BAND_COUNT
protected static final int BAND_COUNT- See Also:
- Constant Field Values
-
BAND_MASK
protected static final int BAND_MASK- See Also:
- Constant Field Values
-
ground
protected org.cloudburstmc.api.block.BlockState ground -
seaLevel
protected int seaLevel -
bandOffset
protected net.daporkchop.lib.noise.NoiseSource bandOffset -
bands
protected org.cloudburstmc.api.block.BlockState[] bands -
base
-
layers
-
bandOffsetNoise
-
-
Constructor Details
-
MesaSurfaceDecorator
public MesaSurfaceDecorator()
-
-
Method Details
-
init0
- Overrides:
init0in classDepthNoiseDecorator
-
decorate
public void decorate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.chunk.Chunk chunk, int x, int z)Description copied from interface:DecoratorDecorates a given chunk.- Parameters:
random- an instance ofPRandomfor 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 decorate
-
getBand
protected org.cloudburstmc.api.block.BlockState getBand(int x, int y, int z) -
getId
public org.cloudburstmc.api.util.Identifier getId()- Returns:
- the identifier of this generation pass
-