Package net.minecraft.src
Class ChunkCache
java.lang.Object
net.minecraft.src.ChunkCache
- All Implemented Interfaces:
IBlockAccess
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChunkCache(World par1World, int par2, int par3, int par4, int par5, int par6, int par7, int par8) -
Method Summary
Modifier and TypeMethodDescriptionbooleandoesBlockHaveSolidTopSurface(int i, int j, int k) Returns true if the block at the given coordinate has a solid (buildable) top surface.booleanset by !getBiomeGenForCoords(int par1, int par2) Gets the biome for a given set of x/z coordinatesintgetBlockId(int par1, int par2, int par3) Returns the block ID at coords x,y,zgetBlockMaterial(int par1, int par2, int par3) Returns the block's material.intgetBlockMetadata(int par1, int par2, int par3) Returns the block metadata at coords x,y,zgetBlockTileEntity(int par1, int par2, int par3) Returns the TileEntity associated with a given block in X,Y,Z coordinates, or null if no TileEntity existsfloatgetBrightness(int par1, int par2, int par3, int par4) intReturns current world height.floatgetLightBrightness(int par1, int par2, int par3) Returns how bright the block is shown as which is the block's light value looked up in a lookup table (light values aren't linear for brightness).intgetLightBrightnessForSkyBlocks(int par1, int par2, int par3, int par4) Any Light rendered on a 1.8 Block goes through hereintgetLightValue(int par1, int par2, int par3) Gets the light value of the specified block coords.intgetLightValueExt(int par1, int par2, int par3, boolean par4) Get light value with flagintgetSkyBlockTypeBrightness(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4) Brightness for SkyBlock.Sky is clear white and (through color computing it is assumed) DEPENDENT ON DAYTIME.intgetSpecialBlockBrightness(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4) is only used on stairs and tilled fieldsReturn the Vec3Pool object for this world.booleanisAirBlock(int par1, int par2, int par3) Returns true if the block at the specified coordinates is emptybooleanisBlockNormalCube(int par1, int par2, int par3) Indicate if a material is a normal solid opaque cube.booleanisBlockOpaqueCube(int par1, int par2, int par3) Returns true if the block at the specified coordinates is an opaque cube.intisBlockProvidingPowerTo(int par1, int par2, int par3, int par4) Is this block powering in the specified direction Args: x, y, z, directionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.src.IBlockAccess
editClass
-
Field Details
-
worldObj
Reference to the World object.
-
-
Constructor Details
-
ChunkCache
public ChunkCache(World par1World, int par2, int par3, int par4, int par5, int par6, int par7, int par8)
-
-
Method Details
-
extendedLevelsInChunkCache
public boolean extendedLevelsInChunkCache()set by !chunk.getAreLevelsEmpty- Specified by:
extendedLevelsInChunkCachein interfaceIBlockAccess
-
getBlockId
public int getBlockId(int par1, int par2, int par3) Returns the block ID at coords x,y,z- Specified by:
getBlockIdin interfaceIBlockAccess
-
getBlockTileEntity
Returns the TileEntity associated with a given block in X,Y,Z coordinates, or null if no TileEntity exists- Specified by:
getBlockTileEntityin interfaceIBlockAccess
-
getBrightness
public float getBrightness(int par1, int par2, int par3, int par4) - Specified by:
getBrightnessin interfaceIBlockAccess
-
getLightBrightnessForSkyBlocks
public int getLightBrightnessForSkyBlocks(int par1, int par2, int par3, int par4) Any Light rendered on a 1.8 Block goes through here- Specified by:
getLightBrightnessForSkyBlocksin interfaceIBlockAccess
-
getLightBrightness
public float getLightBrightness(int par1, int par2, int par3) Returns how bright the block is shown as which is the block's light value looked up in a lookup table (light values aren't linear for brightness). Args: x, y, z- Specified by:
getLightBrightnessin interfaceIBlockAccess
-
getLightValue
public int getLightValue(int par1, int par2, int par3) Gets the light value of the specified block coords. Args: x, y, z -
getLightValueExt
public int getLightValueExt(int par1, int par2, int par3, boolean par4) Get light value with flag -
getBlockMetadata
public int getBlockMetadata(int par1, int par2, int par3) Returns the block metadata at coords x,y,z- Specified by:
getBlockMetadatain interfaceIBlockAccess
-
getBlockMaterial
Returns the block's material.- Specified by:
getBlockMaterialin interfaceIBlockAccess
-
getBiomeGenForCoords
Gets the biome for a given set of x/z coordinates- Specified by:
getBiomeGenForCoordsin interfaceIBlockAccess
-
isBlockOpaqueCube
public boolean isBlockOpaqueCube(int par1, int par2, int par3) Returns true if the block at the specified coordinates is an opaque cube. Args: x, y, z- Specified by:
isBlockOpaqueCubein interfaceIBlockAccess
-
isBlockNormalCube
public boolean isBlockNormalCube(int par1, int par2, int par3) Indicate if a material is a normal solid opaque cube.- Specified by:
isBlockNormalCubein interfaceIBlockAccess
-
doesBlockHaveSolidTopSurface
@Environment(CLIENT) public boolean doesBlockHaveSolidTopSurface(int i, int j, int k) Returns true if the block at the given coordinate has a solid (buildable) top surface.- Specified by:
doesBlockHaveSolidTopSurfacein interfaceIBlockAccess
-
getWorldVec3Pool
Return the Vec3Pool object for this world.- Specified by:
getWorldVec3Poolin interfaceIBlockAccess
-
isAirBlock
public boolean isAirBlock(int par1, int par2, int par3) Returns true if the block at the specified coordinates is empty- Specified by:
isAirBlockin interfaceIBlockAccess
-
getSkyBlockTypeBrightness
Brightness for SkyBlock.Sky is clear white and (through color computing it is assumed) DEPENDENT ON DAYTIME. Brightness for SkyBlock.Block is yellowish and independent. -
getSpecialBlockBrightness
is only used on stairs and tilled fields -
getHeight
public int getHeight()Returns current world height.- Specified by:
getHeightin interfaceIBlockAccess
-
isBlockProvidingPowerTo
public int isBlockProvidingPowerTo(int par1, int par2, int par3, int par4) Is this block powering in the specified direction Args: x, y, z, direction- Specified by:
isBlockProvidingPowerToin interfaceIBlockAccess
-