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, wait
areCollisionShapesEmpty, 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, isCollisionBoxesEmpty
getCombinedLight, isSkyLightMax
func_217296_a, func_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks
protected 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 IWorldReader
public boolean chunkExists(int chunkX, int chunkZ)
chunkExists
in interface IWorldReader
public BlockPos getHeight(Heightmap.Type heightmapType, BlockPos pos)
getHeight
in interface IWorldReader
public int getHeight(Heightmap.Type heightmapType, int x, int z)
getHeight
in interface IWorldReader
public int getSkylightSubtracted()
getSkylightSubtracted
in interface IWorldReader
public WorldBorder getWorldBorder()
getWorldBorder
in interface IWorldReader
public boolean checkNoEntityCollision(@Nullable Entity entityIn, VoxelShape shape)
checkNoEntityCollision
in interface IWorldReader
public boolean isRemote()
isRemote
in interface IWorldReader
public int getSeaLevel()
getSeaLevel
in interface IWorldReader
public Dimension getDimension()
getDimension
in interface IWorldReader
@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity
in interface IBlockReader
public BlockState getBlockState(BlockPos pos)
getBlockState
in interface IBlockReader
public IFluidState getFluidState(BlockPos pos)
getFluidState
in interface IBlockReader
public Biome getBiome(BlockPos pos)
getBiome
in interface IEnviromentBlockReader
public int getLightFor(LightType type, BlockPos pos)
getLightFor
in interface IEnviromentBlockReader