Package net.minecraft.world.gen
Class WorldGenRegion
java.lang.Object
net.minecraft.world.gen.WorldGenRegion
- All Implemented Interfaces:
BiomeManager.IBiomeReader,IWorldGenerationBaseReader,IWorldGenerationReader,IBiomeReader,IBlockDisplayReader,IBlockReader,ICollisionReader,IDayTimeReader,IEntityReader,ISeedReader,IServerWorld,IWorld,IWorldReader,IWorldWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiomeManagerprivate final DimensionTypeprivate final ChunkPosprivate final ChunkPosprivate final ServerWorldprivate final IWorldInfoprivate static final org.apache.logging.log4j.Loggerprivate final Randomprivate final longprivate final intprivate final StructureManagerprivate final intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddFreshEntity(Entity p_217376_1_) voidaddParticle(IParticleData p_195594_1_, double p_195594_2_, double p_195594_4_, double p_195594_6_, double p_195594_8_, double p_195594_10_, double p_195594_12_) booleandestroyBlock(BlockPos p_241212_1_, boolean p_241212_2_, Entity p_241212_3_, int p_241212_4_) getBlockEntity(BlockPos p_175625_1_) getBlockState(BlockPos p_180495_1_) intintgetChunk(int p_212866_1_, int p_212866_2_) getChunk(int p_217353_1_, int p_217353_2_, ChunkStatus p_217353_3_, boolean p_217353_4_) getCurrentDifficultyAt(BlockPos p_175649_1_) getEntities(Entity p_175674_1_, AxisAlignedBB p_175674_2_, Predicate<? super Entity> p_175674_3_) getEntitiesOfClass(Class<? extends T> p_175647_1_, AxisAlignedBB p_175647_2_, Predicate<? super T> p_175647_3_) getFluidState(BlockPos p_204610_1_) intgetHeight(Heightmap.Type p_201676_1_, int p_201676_2_, int p_201676_3_) getLevel()Deprecated.getNearestPlayer(double p_190525_1_, double p_190525_3_, double p_190525_5_, double p_190525_7_, Predicate<Entity> p_190525_9_) intlonggetSeed()floatintgetUncachedNoiseBiome(int p_225604_1_, int p_225604_2_, int p_225604_3_) booleanhasChunk(int p_217354_1_, int p_217354_2_) booleanbooleanisStateAtPosition(BlockPos p_217375_1_, Predicate<BlockState> p_217375_2_) voidlevelEvent(PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_) private voidmarkPosForPostprocessing(BlockPos p_201683_1_) players()voidplaySound(PlayerEntity p_184133_1_, BlockPos p_184133_2_, SoundEvent p_184133_3_, SoundCategory p_184133_4_, float p_184133_5_, float p_184133_6_) booleanremoveBlock(BlockPos p_217377_1_, boolean p_217377_2_) booleansetBlock(BlockPos p_241211_1_, BlockState p_241211_2_, int p_241211_3_, int p_241211_4_) Stream<? extends StructureStart<?>>startsForFeature(SectionPos p_241827_1_, Structure<?> p_241827_2_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.IBiomeReader
getBiomeName, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.IBlockDisplayReader
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxBuildHeight, getMaxLightLevelMethods inherited from interface net.minecraft.world.ICollisionReader
getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.IDayTimeReader
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.IEntityReader
getEntities, getEntitiesOfClass, getLoadedEntitiesOfClass, getLoadedEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestLoadedEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.minecraft.world.IServerWorld
addFreshEntityWithPassengersMethods inherited from interface net.minecraft.world.IWorld
blockUpdated, dayTime, getDifficulty, getHeight, levelEventMethods inherited from interface net.minecraft.world.IWorldReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBlockTint, getBrightness, getChunk, getChunk, getChunkForCollisions, getDirectSignal, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getNoiseBiome, hasChunkAt, hasChunksAt, hasChunksAt, isAreaLoaded, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.IWorldWriter
destroyBlock, destroyBlock, setBlock
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
cache
-
x
private final int x -
z
private final int z -
size
private final int size -
level
-
seed
private final long seed -
levelData
-
random
-
dimensionType
-
blockTicks
-
liquidTicks
-
biomeManager
-
firstPos
-
lastPos
-
structureFeatureManager
-
-
Constructor Details
-
WorldGenRegion
-
-
Method Details
-
getCenterX
public int getCenterX() -
getCenterZ
public int getCenterZ() -
getChunk
- Specified by:
getChunkin interfaceIWorldReader
-
getChunk
@Nullable public IChunk getChunk(int p_217353_1_, int p_217353_2_, ChunkStatus p_217353_3_, boolean p_217353_4_) - Specified by:
getChunkin interfaceIWorldReader
-
hasChunk
public boolean hasChunk(int p_217354_1_, int p_217354_2_) - Specified by:
hasChunkin interfaceIWorld- Specified by:
hasChunkin interfaceIWorldReader
-
getBlockState
- Specified by:
getBlockStatein interfaceIBlockReader
-
getFluidState
- Specified by:
getFluidStatein interfaceIBlockReader
-
getNearestPlayer
@Nullable public PlayerEntity getNearestPlayer(double p_190525_1_, double p_190525_3_, double p_190525_5_, double p_190525_7_, Predicate<Entity> p_190525_9_) - Specified by:
getNearestPlayerin interfaceIEntityReader
-
getSkyDarken
public int getSkyDarken()- Specified by:
getSkyDarkenin interfaceIWorldReader
-
getBiomeManager
- Specified by:
getBiomeManagerin interfaceIWorldReader
-
getUncachedNoiseBiome
- Specified by:
getUncachedNoiseBiomein interfaceIWorldReader
-
getShade
- Specified by:
getShadein interfaceIBlockDisplayReader
-
getLightEngine
- Specified by:
getLightEnginein interfaceIBlockDisplayReader
-
destroyBlock
public boolean destroyBlock(BlockPos p_241212_1_, boolean p_241212_2_, @Nullable Entity p_241212_3_, int p_241212_4_) - Specified by:
destroyBlockin interfaceIWorldWriter
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceIBlockReader
-
setBlock
public boolean setBlock(BlockPos p_241211_1_, BlockState p_241211_2_, int p_241211_3_, int p_241211_4_) - Specified by:
setBlockin interfaceIWorldWriter
-
markPosForPostprocessing
-
addFreshEntity
- Specified by:
addFreshEntityin interfaceIWorldWriter
-
removeBlock
- Specified by:
removeBlockin interfaceIWorldWriter
-
getWorldBorder
- Specified by:
getWorldBorderin interfaceICollisionReader
-
isClientSide
public boolean isClientSide()- Specified by:
isClientSidein interfaceIWorldReader
-
getLevel
Deprecated.- Specified by:
getLevelin interfaceIServerWorld
-
registryAccess
- Specified by:
registryAccessin interfaceIBiomeReader
-
getLevelData
- Specified by:
getLevelDatain interfaceIWorld
-
getCurrentDifficultyAt
- Specified by:
getCurrentDifficultyAtin interfaceIWorld
-
getChunkSource
- Specified by:
getChunkSourcein interfaceIWorld
-
getSeed
public long getSeed()- Specified by:
getSeedin interfaceISeedReader
-
getBlockTicks
- Specified by:
getBlockTicksin interfaceIWorld
-
getLiquidTicks
- Specified by:
getLiquidTicksin interfaceIWorld
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevelin interfaceIWorldReader
-
getRandom
-
getHeight
- Specified by:
getHeightin interfaceIWorldReader
-
playSound
public void playSound(@Nullable PlayerEntity p_184133_1_, BlockPos p_184133_2_, SoundEvent p_184133_3_, SoundCategory p_184133_4_, float p_184133_5_, float p_184133_6_) -
addParticle
public void addParticle(IParticleData p_195594_1_, double p_195594_2_, double p_195594_4_, double p_195594_6_, double p_195594_8_, double p_195594_10_, double p_195594_12_) - Specified by:
addParticlein interfaceIWorld
-
levelEvent
public void levelEvent(@Nullable PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_) - Specified by:
levelEventin interfaceIWorld
-
dimensionType
- Specified by:
dimensionTypein interfaceIWorldReader
-
isStateAtPosition
- Specified by:
isStateAtPositionin interfaceIWorldGenerationBaseReader
-
getEntitiesOfClass
public <T extends Entity> List<T> getEntitiesOfClass(Class<? extends T> p_175647_1_, AxisAlignedBB p_175647_2_, @Nullable Predicate<? super T> p_175647_3_) - Specified by:
getEntitiesOfClassin interfaceIEntityReader
-
getEntities
public List<Entity> getEntities(@Nullable Entity p_175674_1_, AxisAlignedBB p_175674_2_, @Nullable Predicate<? super Entity> p_175674_3_) - Specified by:
getEntitiesin interfaceIEntityReader
-
players
- Specified by:
playersin interfaceIEntityReader
-
startsForFeature
public Stream<? extends StructureStart<?>> startsForFeature(SectionPos p_241827_1_, Structure<?> p_241827_2_) - Specified by:
startsForFeaturein interfaceISeedReader
-