public class DecoratorContext extends Object implements HeightLimitView
| 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 |
getBottomSectionLimit() |
int |
getMaxY() |
BitSet |
getOrCreateCarvingMask(ChunkPos chunkPos,
GenerationStep.Carver carver) |
int |
getSeaLevel() |
int |
getSectionCount() |
int |
getTopY(Heightmap.Type heightmap,
int x,
int z) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBottomHeightLimit, getHeight, getSection, getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimitprivate 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)
public int getSectionCount()
getSectionCount in interface HeightLimitViewpublic int getBottomSectionLimit()
getBottomSectionLimit in interface HeightLimitView