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, waitcheckNoEntityCollision, func_226662_a_, func_226663_a_, func_226664_a_, func_226665_a__, func_226666_b_, func_226667_c_, func_226668_i_, func_226669_j_, getEmptyCollisionShapesfunc_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks, rayTraceBlocksprotected final int chunkX
protected final int chunkZ
protected final IChunk[][] chunks
protected boolean empty
protected final World world
public WorldBorder getWorldBorder()
getWorldBorder in interface ICollisionReaderpublic IBlockReader getBlockReader(int chunkX, int chunkZ)
getBlockReader in interface ICollisionReader@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 IBlockReader