public class Region extends java.lang.Object implements IBlockReader, ICollisionReader
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 |
---|---|
IBlockReader |
getBlockReader(int chunkX,
int chunkZ) |
BlockState |
getBlockState(BlockPos pos) |
private IChunk |
getChunk(BlockPos p_226703_1_) |
private IChunk |
getChunk(int p_226702_1_,
int p_226702_2_) |
IFluidState |
getFluidState(BlockPos pos) |
TileEntity |
getTileEntity(BlockPos pos) |
WorldBorder |
getWorldBorder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkNoEntityCollision, checkNoEntityCollision, func_226663_a_, getCollisionShapes, getCollisionShapes, getEmptyCollisionShapes, hasNoCollisions, hasNoCollisions, hasNoCollisions, hasNoCollisions
func_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks, rayTraceBlocks
protected final int chunkX
protected final int chunkZ
protected final IChunk[][] chunks
protected boolean empty
protected final World world
private IChunk getChunk(int p_226702_1_, int p_226702_2_)
public WorldBorder getWorldBorder()
getWorldBorder
in interface ICollisionReader
public IBlockReader getBlockReader(int chunkX, int chunkZ)
getBlockReader
in interface ICollisionReader
@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