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) |
IFluidState |
getFluidState(BlockPos pos) |
TileEntity |
getTileEntity(BlockPos pos) |
WorldBorder |
getWorldBorder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkNoEntityCollision, func_226662_a_, func_226663_a_, func_226664_a_, func_226665_a__, func_226666_b_, func_226667_c_, func_226668_i_, func_226669_j_, getEmptyCollisionShapes
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
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