Package net.minecraft.server.level
Class WorldGenRegion
java.lang.Object
net.minecraft.server.level.WorldGenRegion
- All Implemented Interfaces:
- BiomeManager.NoiseBiomeSource,- BlockAndTintGetter,- BlockGetter,- CollisionGetter,- CommonLevelAccessor,- EntityGetter,- LevelAccessor,- LevelHeightAccessor,- LevelReader,- LevelSimulatedReader,- LevelSimulatedRW,- LevelTimeAccess,- LevelWriter,- ServerLevelAccessor,- SignalGetter,- WorldGenLevel,- IForgeBlockAndTintGetter,- IForgeBlockGetter
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BiomeManagerprivate final WorldGenTickAccess<Block>private final List<ChunkAccess>private final ChunkAccessprivate final DimensionTypeprivate final ChunkPosprivate final WorldGenTickAccess<Fluid>private final ChunkStatusprivate final ChunkPosprivate final ServerLevelprivate final LevelDataprivate static final org.slf4j.Loggerprivate final RandomSourceprivate final longprivate final intprivate final StructureManagerprivate final AtomicLongprivate static final ResourceLocationprivate final intFields inherited from interface net.minecraft.world.level.SignalGetterDIRECTIONS
- 
Constructor SummaryConstructorsConstructorDescriptionWorldGenRegion(ServerLevel p_143484_, List<ChunkAccess> p_143485_, ChunkStatus p_143486_, int p_143487_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaddFreshEntity(Entity p_9580_) voidaddParticle(ParticleOptions p_9561_, double p_9562_, double p_9563_, double p_9564_, double p_9565_, double p_9566_, double p_9567_) booleandestroyBlock(BlockPos p_9550_, boolean p_9551_, Entity p_9552_, int p_9553_) booleanensureCanWrite(BlockPos p_181031_) voidgameEvent(GameEvent p_215163_, Vec3 p_215164_, GameEvent.Context p_215165_) getBlockEntity(BlockPos p_9582_) getBlockState(BlockPos p_9587_) getChunk(int p_9507_, int p_9508_) getChunk(int p_9514_, int p_9515_, ChunkStatus p_9516_, boolean p_9517_) getCurrentDifficultyAt(BlockPos p_9585_) getEntities(Entity p_9519_, AABB p_9520_, Predicate<? super Entity> p_9521_) getEntities(EntityTypeTest<Entity, T> p_143494_, AABB p_143495_, Predicate<? super T> p_143496_) getFluidState(BlockPos p_9577_) intintgetHeight(Heightmap.Types p_9535_, int p_9536_, int p_9537_) getLevel()Deprecated.intgetNearestPlayer(double p_9501_, double p_9502_, double p_9503_, double p_9504_, Predicate<Entity> p_9505_) intlonggetSeed()floatintgetUncachedNoiseBiome(int p_203787_, int p_203788_, int p_203789_) booleanhasChunk(int p_9574_, int p_9575_) booleanbooleanisFluidAtPosition(BlockPos p_143500_, Predicate<FluidState> p_143501_) booleanisOldChunkAround(ChunkPos p_215160_, int p_215161_) booleanisStateAtPosition(BlockPos p_9544_, Predicate<BlockState> p_9545_) voidlevelEvent(Player p_9523_, int p_9524_, BlockPos p_9525_, int p_9526_) private voidmarkPosForPostprocessing(BlockPos p_9592_) longplayers()voidplaySound(Player p_9528_, BlockPos p_9529_, SoundEvent p_9530_, SoundSource p_9531_, float p_9532_, float p_9533_) booleanremoveBlock(BlockPos p_9547_, boolean p_9548_) booleansetBlock(BlockPos p_9539_, BlockState p_9540_, int p_9541_, int p_9542_) voidsetCurrentlyGenerating(Supplier<String> p_143498_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGettercanSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetterclip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGettercollidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessorgetBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGettergetEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.minecraftforge.client.extensions.IForgeBlockAndTintGettergetShadeMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGettergetExistingBlockEntity, getModelDataManagerMethods inherited from interface net.minecraft.world.level.LevelAccessorblockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, neighborShapeChanged, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.LevelHeightAccessorgetMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReadercanSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunkForCollisions, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isAreaLoaded, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelTimeAccessgetMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriterdestroyBlock, destroyBlock, setBlockMethods inherited from interface net.minecraft.world.level.ServerLevelAccessoraddFreshEntityWithPassengersMethods inherited from interface net.minecraft.world.level.SignalGettergetBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
cache
- 
center
- 
sizeprivate final int size
- 
level
- 
seedprivate final long seed
- 
levelData
- 
random
- 
dimensionType
- 
blockTicks
- 
fluidTicks
- 
biomeManager
- 
firstPos
- 
lastPos
- 
structureManager
- 
generatingStatus
- 
writeRadiusCutoffprivate final int writeRadiusCutoff
- 
currentlyGenerating
- 
subTickCount
- 
WORLDGEN_REGION_RANDOM
 
- 
- 
Constructor Details- 
WorldGenRegionpublic WorldGenRegion(ServerLevel p_143484_, List<ChunkAccess> p_143485_, ChunkStatus p_143486_, int p_143487_) 
 
- 
- 
Method Details- 
isOldChunkAround
- 
getCenter
- 
setCurrentlyGenerating- Specified by:
- setCurrentlyGeneratingin interface- WorldGenLevel
 
- 
getChunk- Specified by:
- getChunkin interface- LevelReader
 
- 
getChunk@Nullable public ChunkAccess getChunk(int p_9514_, int p_9515_, ChunkStatus p_9516_, boolean p_9517_) - Specified by:
- getChunkin interface- LevelReader
 
- 
hasChunkpublic boolean hasChunk(int p_9574_, int p_9575_) - Specified by:
- hasChunkin interface- LevelAccessor
- Specified by:
- hasChunkin interface- LevelReader
 
- 
getBlockState- Specified by:
- getBlockStatein interface- BlockGetter
 
- 
getFluidState- Specified by:
- getFluidStatein interface- BlockGetter
 
- 
getNearestPlayer@Nullable public Player getNearestPlayer(double p_9501_, double p_9502_, double p_9503_, double p_9504_, Predicate<Entity> p_9505_) - Specified by:
- getNearestPlayerin interface- EntityGetter
 
- 
getSkyDarkenpublic int getSkyDarken()- Specified by:
- getSkyDarkenin interface- LevelReader
 
- 
getBiomeManager- Specified by:
- getBiomeManagerin interface- LevelReader
 
- 
getUncachedNoiseBiome- Specified by:
- getUncachedNoiseBiomein interface- LevelReader
 
- 
getShade- Specified by:
- getShadein interface- BlockAndTintGetter
 
- 
getLightEngine- Specified by:
- getLightEnginein interface- BlockAndTintGetter
 
- 
destroyBlockpublic boolean destroyBlock(BlockPos p_9550_, boolean p_9551_, @Nullable Entity p_9552_, int p_9553_) - Specified by:
- destroyBlockin interface- LevelWriter
 
- 
getBlockEntity- Specified by:
- getBlockEntityin interface- BlockGetter
 
- 
ensureCanWrite- Specified by:
- ensureCanWritein interface- WorldGenLevel
 
- 
setBlock- Specified by:
- setBlockin interface- LevelWriter
 
- 
markPosForPostprocessing
- 
addFreshEntity- Specified by:
- addFreshEntityin interface- LevelWriter
 
- 
removeBlock- Specified by:
- removeBlockin interface- LevelWriter
 
- 
getWorldBorder- Specified by:
- getWorldBorderin interface- CollisionGetter
 
- 
isClientSidepublic boolean isClientSide()- Specified by:
- isClientSidein interface- LevelReader
 
- 
getLevelDeprecated.- Specified by:
- getLevelin interface- ServerLevelAccessor
 
- 
registryAccess- Specified by:
- registryAccessin interface- LevelReader
 
- 
enabledFeatures- Specified by:
- enabledFeaturesin interface- LevelReader
 
- 
getLevelData- Specified by:
- getLevelDatain interface- LevelAccessor
 
- 
getCurrentDifficultyAt- Specified by:
- getCurrentDifficultyAtin interface- LevelAccessor
 
- 
getServer- Specified by:
- getServerin interface- LevelAccessor
 
- 
getChunkSource- Specified by:
- getChunkSourcein interface- LevelAccessor
 
- 
getSeedpublic long getSeed()- Specified by:
- getSeedin interface- WorldGenLevel
 
- 
getBlockTicks- Specified by:
- getBlockTicksin interface- LevelAccessor
 
- 
getFluidTicks- Specified by:
- getFluidTicksin interface- LevelAccessor
 
- 
getSeaLevelpublic int getSeaLevel()- Specified by:
- getSeaLevelin interface- LevelReader
 
- 
getRandom- Specified by:
- getRandomin interface- LevelAccessor
 
- 
getHeight- Specified by:
- getHeightin interface- LevelReader
 
- 
playSoundpublic void playSound(@Nullable Player p_9528_, BlockPos p_9529_, SoundEvent p_9530_, SoundSource p_9531_, float p_9532_, float p_9533_) - Specified by:
- playSoundin interface- LevelAccessor
 
- 
addParticlepublic void addParticle(ParticleOptions p_9561_, double p_9562_, double p_9563_, double p_9564_, double p_9565_, double p_9566_, double p_9567_) - Specified by:
- addParticlein interface- LevelAccessor
 
- 
levelEvent- Specified by:
- levelEventin interface- LevelAccessor
 
- 
gameEvent- Specified by:
- gameEventin interface- LevelAccessor
 
- 
dimensionType- Specified by:
- dimensionTypein interface- LevelReader
 
- 
isStateAtPosition- Specified by:
- isStateAtPositionin interface- LevelSimulatedReader
 
- 
isFluidAtPosition- Specified by:
- isFluidAtPositionin interface- LevelSimulatedReader
 
- 
getEntitiespublic <T extends Entity> List<T> getEntities(EntityTypeTest<Entity, T> p_143494_, AABB p_143495_, Predicate<? super T> p_143496_) - Specified by:
- getEntitiesin interface- EntityGetter
 
- 
getEntitiespublic List<Entity> getEntities(@Nullable Entity p_9519_, AABB p_9520_, @Nullable Predicate<? super Entity> p_9521_) - Specified by:
- getEntitiesin interface- EntityGetter
 
- 
players- Specified by:
- playersin interface- EntityGetter
 
- 
getMinBuildHeightpublic int getMinBuildHeight()- Specified by:
- getMinBuildHeightin interface- LevelHeightAccessor
- Specified by:
- getMinBuildHeightin interface- LevelReader
 
- 
getHeightpublic int getHeight()- Specified by:
- getHeightin interface- LevelHeightAccessor
- Specified by:
- getHeightin interface- LevelReader
 
- 
nextSubTickCountpublic long nextSubTickCount()- Specified by:
- nextSubTickCountin interface- LevelAccessor
 
 
-