Class PlacementContext
java.lang.Object
net.minecraft.world.level.levelgen.WorldGenerationContext
net.minecraft.world.level.levelgen.placement.PlacementContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkGeneratorprivate final WorldGenLevelprivate final Optional<PlacedFeature> -
Constructor Summary
ConstructorsConstructorDescriptionPlacementContext(WorldGenLevel pLevel, ChunkGenerator pGenerator, Optional<PlacedFeature> pTopFeature) -
Method Summary
Modifier and TypeMethodDescriptiongetBlockState(BlockPos pPos) getCarvingMask(ChunkPos pChunkPos) intgetHeight(Heightmap.Types pHeightmapType, int pX, int pZ) getLevel()intgetMinY()Methods inherited from class net.minecraft.world.level.levelgen.WorldGenerationContext
getGenDepth, getMinGenY
-
Field Details
-
level
-
generator
-
topFeature
-
-
Constructor Details
-
PlacementContext
public PlacementContext(WorldGenLevel pLevel, ChunkGenerator pGenerator, Optional<PlacedFeature> pTopFeature)
-
-
Method Details
-
getHeight
-
getCarvingMask
-
getBlockState
-
getMinY
public int getMinY() -
getLevel
-
topFeature
-
generator
-