public class WorldGenRegion extends java.lang.Object implements IWorld
Modifier and Type | Field and Description |
---|---|
private BiomeManager |
biomeManager |
private GenerationSettings |
chunkGenSettings |
private java.util.List<IChunk> |
chunkPrimers |
private Dimension |
dimension |
private int |
field_217380_e |
private static org.apache.logging.log4j.Logger |
LOGGER |
private int |
mainChunkX |
private int |
mainChunkZ |
private ITickList<Block> |
pendingBlockTickList |
private ITickList<Fluid> |
pendingFluidTickList |
private java.util.Random |
random |
private int |
seaLevel |
private long |
seed |
private ServerWorld |
world |
private WorldInfo |
worldInfo |
Constructor and Description |
---|
WorldGenRegion(ServerWorld p_i50698_1_,
java.util.List<IChunk> p_i50698_2_) |
Modifier and Type | Method and Description |
---|---|
boolean |
addEntity(Entity entityIn) |
void |
addParticle(IParticleData particleData,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
boolean |
chunkExists(int chunkX,
int chunkZ) |
boolean |
destroyBlock(BlockPos p_225521_1_,
boolean p_225521_2_,
Entity p_225521_3_) |
BiomeManager |
getBiomeManager() |
BlockState |
getBlockState(BlockPos pos) |
IChunk |
getChunk(int chunkX,
int chunkZ) |
IChunk |
getChunk(int x,
int z,
ChunkStatus requiredStatus,
boolean nonnull) |
AbstractChunkProvider |
getChunkProvider() |
PlayerEntity |
getClosestPlayer(double x,
double y,
double z,
double distance,
java.util.function.Predicate<Entity> predicate) |
DifficultyInstance |
getDifficultyForLocation(BlockPos pos) |
Dimension |
getDimension() |
java.util.List<Entity> |
getEntitiesInAABBexcluding(Entity entityIn,
AxisAlignedBB boundingBox,
java.util.function.Predicate<? super Entity> predicate) |
<T extends Entity> |
getEntitiesWithinAABB(java.lang.Class<? extends T> clazz,
AxisAlignedBB aabb,
java.util.function.Predicate<? super T> filter) |
IFluidState |
getFluidState(BlockPos pos) |
int |
getHeight(Heightmap.Type heightmapType,
int x,
int z) |
WorldLightManager |
getLightManager() |
int |
getMainChunkX() |
int |
getMainChunkZ() |
Biome |
getNoiseBiomeRaw(int x,
int y,
int z) |
ITickList<Block> |
getPendingBlockTicks() |
ITickList<Fluid> |
getPendingFluidTicks() |
java.util.List<PlayerEntity> |
getPlayers() |
java.util.Random |
getRandom() |
int |
getSeaLevel() |
long |
getSeed() |
int |
getSkylightSubtracted() |
BlockPos |
getSpawnPoint() |
TileEntity |
getTileEntity(BlockPos pos) |
ServerWorld |
getWorld()
Deprecated.
|
WorldBorder |
getWorldBorder() |
WorldInfo |
getWorldInfo() |
boolean |
hasBlockState(BlockPos p_217375_1_,
java.util.function.Predicate<BlockState> p_217375_2_) |
boolean |
isRemote() |
private void |
markBlockForPostprocessing(BlockPos pos) |
void |
notifyNeighbors(BlockPos pos,
Block blockIn) |
void |
playEvent(PlayerEntity player,
int type,
BlockPos pos,
int data) |
void |
playSound(PlayerEntity player,
BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
boolean |
removeBlock(BlockPos pos,
boolean isMoving) |
boolean |
setBlockState(BlockPos pos,
BlockState newState,
int flags) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkNoEntityCollision, getCelestialAngle, getCurrentMoonPhaseFactor, getDifficulty, getEmptyCollisionShapes, getHeight, getMoonPhase, playEvent
func_225318_b, getClosestEntity, getClosestEntityWithinAABB, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getLoadedEntitiesWithinAABB, getLoadedEntitiesWithinAABB, getPlayerByUuid, getTargettableEntitiesWithinAABB, getTargettablePlayersWithinAABB, isPlayerWithin
canBlockSeeSky, containsAnyLiquid, getBiome, getBlockColor, getBlockReader, getBrightness, getChunk, getChunk, getLight, getNeighborAwareLightSubtracted, getNoiseBiome, getStrongPower, hasWater, isAirBlock, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded
canSeeSky, getLightFor, getLightSubtracted
checkNoEntityCollision, func_226663_a_, getCollisionShapes, getCollisionShapes, hasNoCollisions, hasNoCollisions, hasNoCollisions, hasNoCollisions
func_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks, rayTraceBlocks
getMaxHeight
destroyBlock
private static final org.apache.logging.log4j.Logger LOGGER
private final java.util.List<IChunk> chunkPrimers
private final int mainChunkX
private final int mainChunkZ
private final int field_217380_e
private final ServerWorld world
private final long seed
private final int seaLevel
private final WorldInfo worldInfo
private final java.util.Random random
private final Dimension dimension
private final GenerationSettings chunkGenSettings
private final BiomeManager biomeManager
public WorldGenRegion(ServerWorld p_i50698_1_, java.util.List<IChunk> p_i50698_2_)
public int getMainChunkX()
public int getMainChunkZ()
public IChunk getChunk(int chunkX, int chunkZ)
getChunk
in interface IWorldReader
@Nullable public IChunk getChunk(int x, int z, ChunkStatus requiredStatus, boolean nonnull)
getChunk
in interface IWorldReader
public boolean chunkExists(int chunkX, int chunkZ)
chunkExists
in interface IWorld
chunkExists
in interface IWorldReader
public BlockState getBlockState(BlockPos pos)
getBlockState
in interface IBlockReader
public IFluidState getFluidState(BlockPos pos)
getFluidState
in interface IBlockReader
@Nullable public PlayerEntity getClosestPlayer(double x, double y, double z, double distance, java.util.function.Predicate<Entity> predicate)
getClosestPlayer
in interface IEntityReader
public int getSkylightSubtracted()
getSkylightSubtracted
in interface IWorldReader
public BiomeManager getBiomeManager()
getBiomeManager
in interface IWorldReader
public Biome getNoiseBiomeRaw(int x, int y, int z)
getNoiseBiomeRaw
in interface IWorldReader
public WorldLightManager getLightManager()
getLightManager
in interface ILightReader
public boolean destroyBlock(BlockPos p_225521_1_, boolean p_225521_2_, @Nullable Entity p_225521_3_)
destroyBlock
in interface IWorldWriter
@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity
in interface IBlockReader
public boolean setBlockState(BlockPos pos, BlockState newState, int flags)
setBlockState
in interface IWorldWriter
private void markBlockForPostprocessing(BlockPos pos)
public boolean addEntity(Entity entityIn)
addEntity
in interface IWorldWriter
public boolean removeBlock(BlockPos pos, boolean isMoving)
removeBlock
in interface IWorldWriter
public WorldBorder getWorldBorder()
getWorldBorder
in interface ICollisionReader
public boolean isRemote()
isRemote
in interface IWorldReader
@Deprecated public ServerWorld getWorld()
public WorldInfo getWorldInfo()
getWorldInfo
in interface IWorld
public DifficultyInstance getDifficultyForLocation(BlockPos pos)
getDifficultyForLocation
in interface IWorld
public AbstractChunkProvider getChunkProvider()
getChunkProvider
in interface IWorld
public ITickList<Block> getPendingBlockTicks()
getPendingBlockTicks
in interface IWorld
public ITickList<Fluid> getPendingFluidTicks()
getPendingFluidTicks
in interface IWorld
public int getSeaLevel()
getSeaLevel
in interface IWorldReader
public void notifyNeighbors(BlockPos pos, Block blockIn)
notifyNeighbors
in interface IWorld
public int getHeight(Heightmap.Type heightmapType, int x, int z)
getHeight
in interface IWorldReader
public void playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent soundIn, SoundCategory category, float volume, float pitch)
public void addParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle
in interface IWorld
public void playEvent(@Nullable PlayerEntity player, int type, BlockPos pos, int data)
public BlockPos getSpawnPoint()
getSpawnPoint
in interface IWorld
public Dimension getDimension()
getDimension
in interface IWorldReader
public boolean hasBlockState(BlockPos p_217375_1_, java.util.function.Predicate<BlockState> p_217375_2_)
hasBlockState
in interface IWorldGenerationBaseReader
public <T extends Entity> java.util.List<T> getEntitiesWithinAABB(java.lang.Class<? extends T> clazz, AxisAlignedBB aabb, @Nullable java.util.function.Predicate<? super T> filter)
getEntitiesWithinAABB
in interface IEntityReader
public java.util.List<Entity> getEntitiesInAABBexcluding(@Nullable Entity entityIn, AxisAlignedBB boundingBox, @Nullable java.util.function.Predicate<? super Entity> predicate)
getEntitiesInAABBexcluding
in interface IEntityReader
public java.util.List<PlayerEntity> getPlayers()
getPlayers
in interface IEntityReader