public class Region extends java.lang.Object implements IWorldReader
| Modifier and Type | Field and Description |
|---|---|
protected IChunk[][] |
chunks |
protected int |
chunkX |
protected int |
chunkZ |
protected boolean |
empty |
protected World |
world |
| Constructor and Description |
|---|
Region(World worldIn,
BlockPos p_i50004_2_,
BlockPos p_i50004_3_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkNoEntityCollision(Entity entityIn,
VoxelShape shape) |
boolean |
chunkExists(int chunkX,
int chunkZ) |
Biome |
getBiome(BlockPos pos) |
BlockState |
getBlockState(BlockPos pos) |
IChunk |
getChunk(int x,
int z,
ChunkStatus requiredStatus,
boolean nonnull) |
Dimension |
getDimension() |
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 |
getSeaLevel() |
int |
getSkylightSubtracted() |
TileEntity |
getTileEntity(BlockPos pos) |
WorldBorder |
getWorldBorder() |
boolean |
isRemote() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareCollisionShapesEmpty, areCollisionShapesEmpty, canBlockSeeSky, checkNoEntityCollision, containsAnyLiquid, func_217350_a, getBrightness, getChunk, getChunk, getChunk, getChunkStatus, getCollisionShapes, getCollisionShapes, getEmptyCollisionShapes, getLight, getNeighborAwareLightSubtracted, getStrongPower, hasWater, isAirBlock, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded, isCollisionBoxesEmpty, isCollisionBoxesEmptygetCombinedLight, isSkyLightMaxfunc_217296_a, func_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocksprotected final int chunkX
protected final int chunkZ
protected final IChunk[][] chunks
protected boolean empty
protected final World world
public int getLightSubtracted(BlockPos pos, int amount)
getLightSubtracted 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 IWorldReaderpublic BlockPos getHeight(Heightmap.Type heightmapType, BlockPos pos)
getHeight in interface IWorldReaderpublic int getHeight(Heightmap.Type heightmapType, int x, int z)
getHeight in interface IWorldReaderpublic int getSkylightSubtracted()
getSkylightSubtracted in interface IWorldReaderpublic WorldBorder getWorldBorder()
getWorldBorder in interface IWorldReaderpublic boolean checkNoEntityCollision(@Nullable
Entity entityIn,
VoxelShape shape)
checkNoEntityCollision in interface IWorldReaderpublic boolean isRemote()
isRemote in interface IWorldReaderpublic int getSeaLevel()
getSeaLevel in interface IWorldReaderpublic Dimension getDimension()
getDimension in interface IWorldReader@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity in interface IBlockReaderpublic BlockState getBlockState(BlockPos pos)
getBlockState in interface IBlockReaderpublic IFluidState getFluidState(BlockPos pos)
getFluidState in interface IBlockReaderpublic Biome getBiome(BlockPos pos)
getBiome in interface IEnviromentBlockReaderpublic int getLightFor(LightType type, BlockPos pos)
getLightFor in interface IEnviromentBlockReader