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
Modifier and TypeFieldDescriptionprivate final BiomeManager
private final DimensionType
private final ChunkPos
private final ChunkPos
private final ServerWorld
private final IWorldInfo
private static final org.apache.logging.log4j.Logger
private final Random
private final long
private final int
private final StructureManager
private final int
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addFreshEntity
(Entity p_217376_1_) 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_) boolean
destroyBlock
(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_) int
int
getChunk
(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_) int
getHeight
(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_) int
long
getSeed()
float
int
getUncachedNoiseBiome
(int p_225604_1_, int p_225604_2_, int p_225604_3_) boolean
hasChunk
(int p_217354_1_, int p_217354_2_) boolean
boolean
isStateAtPosition
(BlockPos p_217375_1_, Predicate<BlockState> p_217375_2_) void
levelEvent
(PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_) private void
markPosForPostprocessing
(BlockPos p_201683_1_) players()
void
playSound
(PlayerEntity p_184133_1_, BlockPos p_184133_2_, SoundEvent p_184133_3_, SoundCategory p_184133_4_, float p_184133_5_, float p_184133_6_) boolean
removeBlock
(BlockPos p_217377_1_, boolean p_217377_2_) boolean
setBlock
(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, wait
Methods inherited from interface net.minecraft.world.IBiomeReader
getBiomeName, getEntityCollisions, getHeightmapPos, isUnobstructed
Methods inherited from interface net.minecraft.world.IBlockDisplayReader
canSeeSky, getBrightness, getRawBrightness
Methods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxBuildHeight, getMaxLightLevel
Methods inherited from interface net.minecraft.world.ICollisionReader
getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
Methods inherited from interface net.minecraft.world.IDayTimeReader
getMoonBrightness, getMoonPhase, getTimeOfDay
Methods inherited from interface net.minecraft.world.IEntityReader
getEntities, getEntitiesOfClass, getLoadedEntitiesOfClass, getLoadedEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestLoadedEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer
Methods inherited from interface net.minecraft.world.IServerWorld
addFreshEntityWithPassengers
Methods inherited from interface net.minecraft.world.IWorld
blockUpdated, dayTime, getDifficulty, getHeight, levelEvent
Methods 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, isWaterAt
Methods 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:
getChunk
in interfaceIWorldReader
-
getChunk
@Nullable public IChunk getChunk(int p_217353_1_, int p_217353_2_, ChunkStatus p_217353_3_, boolean p_217353_4_) - Specified by:
getChunk
in interfaceIWorldReader
-
hasChunk
public boolean hasChunk(int p_217354_1_, int p_217354_2_) - Specified by:
hasChunk
in interfaceIWorld
- Specified by:
hasChunk
in interfaceIWorldReader
-
getBlockState
- Specified by:
getBlockState
in interfaceIBlockReader
-
getFluidState
- Specified by:
getFluidState
in 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:
getNearestPlayer
in interfaceIEntityReader
-
getSkyDarken
public int getSkyDarken()- Specified by:
getSkyDarken
in interfaceIWorldReader
-
getBiomeManager
- Specified by:
getBiomeManager
in interfaceIWorldReader
-
getUncachedNoiseBiome
- Specified by:
getUncachedNoiseBiome
in interfaceIWorldReader
-
getShade
- Specified by:
getShade
in interfaceIBlockDisplayReader
-
getLightEngine
- Specified by:
getLightEngine
in interfaceIBlockDisplayReader
-
destroyBlock
public boolean destroyBlock(BlockPos p_241212_1_, boolean p_241212_2_, @Nullable Entity p_241212_3_, int p_241212_4_) - Specified by:
destroyBlock
in interfaceIWorldWriter
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceIBlockReader
-
setBlock
public boolean setBlock(BlockPos p_241211_1_, BlockState p_241211_2_, int p_241211_3_, int p_241211_4_) - Specified by:
setBlock
in interfaceIWorldWriter
-
markPosForPostprocessing
-
addFreshEntity
- Specified by:
addFreshEntity
in interfaceIWorldWriter
-
removeBlock
- Specified by:
removeBlock
in interfaceIWorldWriter
-
getWorldBorder
- Specified by:
getWorldBorder
in interfaceICollisionReader
-
isClientSide
public boolean isClientSide()- Specified by:
isClientSide
in interfaceIWorldReader
-
getLevel
Deprecated.- Specified by:
getLevel
in interfaceIServerWorld
-
registryAccess
- Specified by:
registryAccess
in interfaceIBiomeReader
-
getLevelData
- Specified by:
getLevelData
in interfaceIWorld
-
getCurrentDifficultyAt
- Specified by:
getCurrentDifficultyAt
in interfaceIWorld
-
getChunkSource
- Specified by:
getChunkSource
in interfaceIWorld
-
getSeed
public long getSeed()- Specified by:
getSeed
in interfaceISeedReader
-
getBlockTicks
- Specified by:
getBlockTicks
in interfaceIWorld
-
getLiquidTicks
- Specified by:
getLiquidTicks
in interfaceIWorld
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevel
in interfaceIWorldReader
-
getRandom
-
getHeight
- Specified by:
getHeight
in 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:
addParticle
in interfaceIWorld
-
levelEvent
public void levelEvent(@Nullable PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_) - Specified by:
levelEvent
in interfaceIWorld
-
dimensionType
- Specified by:
dimensionType
in interfaceIWorldReader
-
isStateAtPosition
- Specified by:
isStateAtPosition
in 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:
getEntitiesOfClass
in interfaceIEntityReader
-
getEntities
public List<Entity> getEntities(@Nullable Entity p_175674_1_, AxisAlignedBB p_175674_2_, @Nullable Predicate<? super Entity> p_175674_3_) - Specified by:
getEntities
in interfaceIEntityReader
-
players
- Specified by:
players
in interfaceIEntityReader
-
startsForFeature
public Stream<? extends StructureStart<?>> startsForFeature(SectionPos p_241827_1_, Structure<?> p_241827_2_) - Specified by:
startsForFeature
in interfaceISeedReader
-