Interface IBlockAccess

All Known Implementing Classes:
ChunkCache, DemoWorldServer, World, WorldClient, WorldServer, WorldServerMulti

public interface IBlockAccess
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    doesBlockHaveSolidTopSurface(int var1, int var2, int var3)
    Returns true if the block at the given coordinate has a solid (buildable) top surface.
    default void
    Not a real method, this is used to change the generated code to force the build process to export this class
    boolean
    set by !
    getBiomeGenForCoords(int var1, int var2)
    Gets the biome for a given set of x/z coordinates
    int
    getBlockId(int var1, int var2, int var3)
    Returns the block ID at coords x,y,z
    getBlockMaterial(int var1, int var2, int var3)
    Returns the block's material.
    int
    getBlockMetadata(int var1, int var2, int var3)
    Returns the block metadata at coords x,y,z
    getBlockTileEntity(int var1, int var2, int var3)
    Returns the TileEntity associated with a given block in X,Y,Z coordinates, or null if no TileEntity exists
    float
    getBrightness(int var1, int var2, int var3, int var4)
     
    int
    Returns current world height.
    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).
    int
    getLightBrightnessForSkyBlocks(int var1, int var2, int var3, int var4)
    Any Light rendered on a 1.8 Block goes through here
    Return the Vec3Pool object for this world.
    boolean
    isAirBlock(int var1, int var2, int var3)
    Returns true if the block at the specified coordinates is empty
    boolean
    isBlockNormalCube(int var1, int var2, int var3)
    Indicate if a material is a normal solid opaque cube.
    boolean
    isBlockOpaqueCube(int var1, int var2, int var3)
    Returns true if the block at the specified coordinates is an opaque cube.
    int
    isBlockProvidingPowerTo(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

      TileEntity getBlockTileEntity(int var1, int var2, int var3)
      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

      Material getBlockMaterial(int var1, int var2, int var3)
      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

      BiomeGenBase getBiomeGenForCoords(int var1, int var2)
      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