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, wait
canBlockSeeSky, 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, isInsideWorldBorder
getMaxLightLevel
protected 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 IWorldReader
public float getBrightness(BlockPos pos)
getBrightness
in interface IWorldReaderBase
public int getNeighborAwareLightSubtracted(BlockPos pos, int amount)
getNeighborAwareLightSubtracted
in interface IWorldReaderBase
public Dimension getDimension()
getDimension
in interface IWorldReaderBase
public int getLightSubtracted(BlockPos pos, int amount)
getLightSubtracted
in interface IWorldReaderBase
public boolean isChunkLoaded(int x, int z, boolean allowEmpty)
isChunkLoaded
in interface IWorldReaderBase
public boolean canSeeSky(BlockPos pos)
canSeeSky
in interface IWorldReaderBase
public boolean containsChunk(int p_205054_1_, int p_205054_2_)
public int getHeight(Heightmap.Type heightmapType, int x, int z)
getHeight
in interface IWorldReaderBase
public WorldBorder getWorldBorder()
getWorldBorder
in interface IWorldReaderBase
public 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 IWorldReaderBase
public IBlockState getBlockState(BlockPos pos)
getBlockState
in interface IBlockReader
public IFluidState getFluidState(BlockPos pos)
getFluidState
in interface IBlockReader
public int getSkylightSubtracted()
getSkylightSubtracted
in interface IWorldReaderBase
public Biome getBiome(BlockPos pos)
getBiome
in interface IWorldReaderBase
public boolean isAirBlock(BlockPos pos)
isAirBlock
in interface IWorldReaderBase
public int getLightFor(EnumLightType type, BlockPos pos)
getLightFor
in interface IWorldReaderBase
public int getStrongPower(BlockPos pos, EnumFacing direction)
getStrongPower
in interface IWorldReaderBase
public boolean isRemote()
isRemote
in interface IWorldReaderBase
public int getSeaLevel()
getSeaLevel
in interface IWorldReaderBase