Package net.minecraft.src
Interface IBlockAccess
- All Known Implementing Classes:
ChunkCache,DemoWorldServer,World,WorldClient,WorldServer,WorldServerMulti
public interface IBlockAccess
-
Method Summary
Modifier and TypeMethodDescriptionbooleandoesBlockHaveSolidTopSurface(int var1, int var2, int var3) Returns true if the block at the given coordinate has a solid (buildable) top surface.default voidNot a real method, this is used to change the generated code to force the build process to export this classbooleanset by !getBiomeGenForCoords(int var1, int var2) Gets the biome for a given set of x/z coordinatesintgetBlockId(int var1, int var2, int var3) Returns the block ID at coords x,y,zgetBlockMaterial(int var1, int var2, int var3) Returns the block's material.intgetBlockMetadata(int var1, int var2, int var3) Returns the block metadata at coords x,y,zgetBlockTileEntity(int var1, int var2, int var3) Returns the TileEntity associated with a given block in X,Y,Z coordinates, or null if no TileEntity existsfloatgetBrightness(int var1, int var2, int var3, int var4) intReturns current world height.floatgetLightBrightness(int var1, int var2, int var3) 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 var1, int var2, int var3, int var4) Any Light rendered on a 1.8 Block goes through hereReturn the Vec3Pool object for this world.booleanisAirBlock(int var1, int var2, int var3) Returns true if the block at the specified coordinates is emptybooleanisBlockNormalCube(int var1, int var2, int var3) Indicate if a material is a normal solid opaque cube.booleanisBlockOpaqueCube(int var1, int var2, int var3) Returns true if the block at the specified coordinates is an opaque cube.intisBlockProvidingPowerTo(int var1, int var2, int var3, int var4) Is this block powering in the specified direction Args: x, y, z, direction
-
Method Details
-
getBlockId
int getBlockId(int var1, int var2, int var3) Returns the block ID at coords x,y,z -
getBlockTileEntity
Returns the TileEntity associated with a given block in X,Y,Z coordinates, or null if no TileEntity exists -
getLightBrightnessForSkyBlocks
int getLightBrightnessForSkyBlocks(int var1, int var2, int var3, int var4) Any Light rendered on a 1.8 Block goes through here -
getBrightness
float getBrightness(int var1, int var2, int var3, int var4) -
getLightBrightness
float getLightBrightness(int var1, int var2, int var3) 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 -
getBlockMetadata
int getBlockMetadata(int var1, int var2, int var3) Returns the block metadata at coords x,y,z -
getBlockMaterial
Returns the block's material. -
isBlockOpaqueCube
boolean isBlockOpaqueCube(int var1, int var2, int var3) Returns true if the block at the specified coordinates is an opaque cube. Args: x, y, z -
isBlockNormalCube
boolean isBlockNormalCube(int var1, int var2, int var3) Indicate if a material is a normal solid opaque cube. -
isAirBlock
boolean isAirBlock(int var1, int var2, int var3) Returns true if the block at the specified coordinates is empty -
getBiomeGenForCoords
Gets the biome for a given set of x/z coordinates -
getHeight
int getHeight()Returns current world height. -
extendedLevelsInChunkCache
boolean extendedLevelsInChunkCache()set by !chunk.getAreLevelsEmpty -
doesBlockHaveSolidTopSurface
boolean doesBlockHaveSolidTopSurface(int var1, int var2, int var3) Returns true if the block at the given coordinate has a solid (buildable) top surface. -
getWorldVec3Pool
Vec3Pool getWorldVec3Pool()Return the Vec3Pool object for this world. -
isBlockProvidingPowerTo
int isBlockProvidingPowerTo(int var1, int var2, int var3, int var4) Is this block powering in the specified direction Args: x, y, z, direction -
editClass
default void editClass()Not a real method, this is used to change the generated code to force the build process to export this class
-