Class DecoratorContext
java.lang.Object
net.minecraft.world.gen.decorator.DecoratorContext
- All Implemented Interfaces:
HeightLimitView
public class DecoratorContext extends Object implements HeightLimitView
-
Field Summary
Fields Modifier and Type Field Description private ChunkGeneratorgeneratorprivate StructureWorldAccessworld -
Constructor Summary
Constructors Constructor Description DecoratorContext(StructureWorldAccess world, ChunkGenerator generator) -
Method Summary
Modifier and Type Method Description BlockStategetBlockState(BlockPos pos)intgetBottomSectionLimit()intgetMaxY()BitSetgetOrCreateCarvingMask(ChunkPos chunkPos, GenerationStep.Carver carver)intgetSeaLevel()intgetSectionCount()intgetTopY(Heightmap.Type heightmap, int x, int z)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.HeightLimitView
getBottomHeightLimit, getHeight, getSection, getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit
-
Field Details
-
world
-
generator
-
-
Constructor Details
-
DecoratorContext
-
-
Method Details
-
getTopY
-
getMaxY
public int getMaxY() -
getSeaLevel
public int getSeaLevel() -
getOrCreateCarvingMask
-
getBlockState
-
getSectionCount
public int getSectionCount()- Specified by:
getSectionCountin interfaceHeightLimitView
-
getBottomSectionLimit
public int getBottomSectionLimit()- Specified by:
getBottomSectionLimitin interfaceHeightLimitView
-