public class DecoratorContext extends Object
Modifier and Type | Field and Description |
---|---|
private ChunkGenerator |
generator |
private StructureWorldAccess |
world |
Constructor and Description |
---|
DecoratorContext(StructureWorldAccess world,
ChunkGenerator generator) |
Modifier and Type | Method and Description |
---|---|
BlockState |
getBlockState(BlockPos pos) |
int |
getMaxY() |
BitSet |
getOrCreateCarvingMask(ChunkPos chunkPos,
GenerationStep.Carver carver) |
int |
getSeaLevel() |
int |
getTopY(Heightmap.Type heightmap,
int x,
int z) |
private final StructureWorldAccess world
private final ChunkGenerator generator
public DecoratorContext(StructureWorldAccess world, ChunkGenerator generator)
public int getTopY(Heightmap.Type heightmap, int x, int z)
public int getMaxY()
public int getSeaLevel()
public BitSet getOrCreateCarvingMask(ChunkPos chunkPos, GenerationStep.Carver carver)
public BlockState getBlockState(BlockPos pos)