public class WorldGenRegion extends java.lang.Object implements IWorld
| 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 |
checkNoEntityCollision(Entity entityIn,
VoxelShape shape) |
boolean |
chunkExists(int chunkX,
int chunkZ) |
boolean |
destroyBlock(BlockPos pos,
boolean dropBlock) |
Biome |
getBiome(BlockPos pos) |
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) |
BlockPos |
getHeight(Heightmap.Type heightmapType,
BlockPos pos) |
int |
getHeight(Heightmap.Type heightmapType,
int x,
int z) |
int |
getLightFor(LightType type,
BlockPos pos) |
int |
getLightSubtracted(BlockPos pos,
int amount) |
int |
getMainChunkX() |
int |
getMainChunkZ() |
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() |
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, waitgetCelestialAngle, getCurrentMoonPhaseFactor, getDifficulty, getEmptyCollisionShapes, getMoonPhase, playEventfunc_225316_b, func_225317_b, func_225318_b, getClosestEntity, getClosestEntityWithinAABB, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getPlayerByUuid, getTargettableEntitiesWithinAABB, getTargettablePlayersWithinAABB, isPlayerWithinareCollisionShapesEmpty, areCollisionShapesEmpty, canBlockSeeSky, checkNoEntityCollision, containsAnyLiquid, func_217350_a, getBrightness, getChunk, getChunk, getChunkStatus, getCollisionShapes, getCollisionShapes, getLight, getNeighborAwareLightSubtracted, getStrongPower, hasWater, isAirBlock, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded, isCollisionBoxesEmpty, isCollisionBoxesEmptygetCombinedLight, isSkyLightMaxfunc_217296_a, func_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocksgetMaxHeightpublic 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 IWorldReaderpublic boolean chunkExists(int chunkX,
int chunkZ)
chunkExists in interface IWorldchunkExists in interface IWorldReaderpublic BlockState getBlockState(BlockPos pos)
getBlockState in interface IBlockReaderpublic 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 IEntityReaderpublic int getSkylightSubtracted()
getSkylightSubtracted in interface IWorldReaderpublic Biome getBiome(BlockPos pos)
getBiome in interface IEnviromentBlockReaderpublic int getLightFor(LightType type, BlockPos pos)
getLightFor in interface IEnviromentBlockReaderpublic int getLightSubtracted(BlockPos pos, int amount)
getLightSubtracted in interface IWorldReaderpublic boolean destroyBlock(BlockPos pos, boolean dropBlock)
destroyBlock in interface IWorldWriter@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity in interface IBlockReaderpublic boolean setBlockState(BlockPos pos, BlockState newState, int flags)
setBlockState in interface IWorldWriterpublic boolean addEntity(Entity entityIn)
addEntity in interface IWorldWriterpublic boolean removeBlock(BlockPos pos, boolean isMoving)
removeBlock in interface IWorldWriterpublic WorldBorder getWorldBorder()
getWorldBorder in interface IWorldReaderpublic boolean checkNoEntityCollision(@Nullable
Entity entityIn,
VoxelShape shape)
checkNoEntityCollision in interface IEntityReadercheckNoEntityCollision in interface IWorldcheckNoEntityCollision in interface IWorldReaderpublic boolean isRemote()
isRemote in interface IWorldReader@Deprecated public ServerWorld getWorld()
public WorldInfo getWorldInfo()
getWorldInfo in interface IWorldpublic DifficultyInstance getDifficultyForLocation(BlockPos pos)
getDifficultyForLocation in interface IWorldpublic AbstractChunkProvider getChunkProvider()
getChunkProvider in interface IWorldpublic ITickList<Block> getPendingBlockTicks()
getPendingBlockTicks in interface IWorldpublic ITickList<Fluid> getPendingFluidTicks()
getPendingFluidTicks in interface IWorldpublic int getSeaLevel()
getSeaLevel in interface IWorldReaderpublic void notifyNeighbors(BlockPos pos, Block blockIn)
notifyNeighbors in interface IWorldpublic int getHeight(Heightmap.Type heightmapType, int x, int z)
getHeight in interface IWorldReaderpublic 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 IWorldpublic void playEvent(@Nullable
PlayerEntity player,
int type,
BlockPos pos,
int data)
public BlockPos getSpawnPoint()
getSpawnPoint in interface IWorldpublic Dimension getDimension()
getDimension in interface IWorldReaderpublic boolean hasBlockState(BlockPos p_217375_1_, java.util.function.Predicate<BlockState> p_217375_2_)
hasBlockState in interface IWorldGenerationBaseReaderpublic <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 IEntityReaderpublic java.util.List<Entity> getEntitiesInAABBexcluding(@Nullable Entity entityIn, AxisAlignedBB boundingBox, @Nullable java.util.function.Predicate<? super Entity> predicate)
getEntitiesInAABBexcluding in interface IEntityReaderpublic java.util.List<PlayerEntity> getPlayers()
getPlayers in interface IEntityReaderpublic BlockPos getHeight(Heightmap.Type heightmapType, BlockPos pos)
getHeight in interface IWorldGenerationBaseReadergetHeight in interface IWorldReader