public class Region extends java.lang.Object implements IWorldReader
| Modifier and Type | Field and Description |
|---|---|
protected Chunk[][] |
chunkArray |
protected int |
chunkX |
protected int |
chunkZ |
protected boolean |
empty |
protected World |
world |
| Constructor and Description |
|---|
Region(World worldIn,
BlockPos posFromIn,
BlockPos posToIn,
int subIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanBlockSeeSky, checkNoEntityCollision, checkNoEntityCollision, containsAnyLiquid, func_212388_b, func_212389_a, func_212391_a, func_212392_a, getClosestPlayer, getClosestPlayerToEntity, getCollisionBoxes, getHeight, getLight, getNearestPlayerNotCreative, hasWater, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded, isBlockLoaded, isCollisionBoxesEmpty, isCollisionBoxesEmpty, isInsideWorldBordergetMaxLightLevelprotected int chunkX
protected int chunkZ
protected Chunk[][] chunkArray
protected boolean empty
protected World world
@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity in interface IBlockReader@Nullable public TileEntity getTileEntity(BlockPos pos, Chunk.EnumCreateEntityType createType)
public int getCombinedLight(BlockPos pos, int lightValue)
getCombinedLight in interface IWorldReaderpublic float getBrightness(BlockPos pos)
getBrightness in interface IWorldReaderBasepublic int getNeighborAwareLightSubtracted(BlockPos pos, int amount)
getNeighborAwareLightSubtracted in interface IWorldReaderBasepublic Dimension getDimension()
getDimension in interface IWorldReaderBasepublic int getLightSubtracted(BlockPos pos, int amount)
getLightSubtracted in interface IWorldReaderBasepublic boolean isChunkLoaded(int x,
int z,
boolean allowEmpty)
isChunkLoaded in interface IWorldReaderBasepublic boolean canSeeSky(BlockPos pos)
canSeeSky in interface IWorldReaderBasepublic boolean containsChunk(int p_205054_1_,
int p_205054_2_)
public int getHeight(Heightmap.Type heightmapType, int x, int z)
getHeight in interface IWorldReaderBasepublic WorldBorder getWorldBorder()
getWorldBorder in interface IWorldReaderBasepublic boolean checkNoEntityCollision(@Nullable
Entity entityIn,
VoxelShape shape)
checkNoEntityCollision in interface IWorldReaderBase@Nullable public EntityPlayer getClosestPlayer(double x, double y, double z, double distance, java.util.function.Predicate<Entity> predicate)
getClosestPlayer in interface IWorldReaderBasepublic IBlockState getBlockState(BlockPos pos)
getBlockState in interface IBlockReaderpublic IFluidState getFluidState(BlockPos pos)
getFluidState in interface IBlockReaderpublic int getSkylightSubtracted()
getSkylightSubtracted in interface IWorldReaderBasepublic Biome getBiome(BlockPos pos)
getBiome in interface IWorldReaderBasepublic boolean isAirBlock(BlockPos pos)
isAirBlock in interface IWorldReaderBasepublic int getLightFor(EnumLightType type, BlockPos pos)
getLightFor in interface IWorldReaderBasepublic int getStrongPower(BlockPos pos, EnumFacing direction)
getStrongPower in interface IWorldReaderBasepublic boolean isRemote()
isRemote in interface IWorldReaderBasepublic int getSeaLevel()
getSeaLevel in interface IWorldReaderBase