Class ChunkCache

java.lang.Object
net.minecraft.src.ChunkCache
All Implemented Interfaces:
IBlockAccess

public class ChunkCache extends Object implements IBlockAccess
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Reference to the World object.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChunkCache(World par1World, int par2, int par3, int par4, int par5, int par6, int par7, int par8)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    doesBlockHaveSolidTopSurface(int i, int j, int k)
    Returns true if the block at the given coordinate has a solid (buildable) top surface.
    boolean
    set by !
    getBiomeGenForCoords(int par1, int par2)
    Gets the biome for a given set of x/z coordinates
    int
    getBlockId(int par1, int par2, int par3)
    Returns the block ID at coords x,y,z
    getBlockMaterial(int par1, int par2, int par3)
    Returns the block's material.
    int
    getBlockMetadata(int par1, int par2, int par3)
    Returns the block metadata at coords x,y,z
    getBlockTileEntity(int par1, int par2, int par3)
    Returns the TileEntity associated with a given block in X,Y,Z coordinates, or null if no TileEntity exists
    float
    getBrightness(int par1, int par2, int par3, int par4)
     
    int
    Returns current world height.
    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).
    int
    getLightBrightnessForSkyBlocks(int par1, int par2, int par3, int par4)
    Any Light rendered on a 1.8 Block goes through here
    int
    getLightValue(int par1, int par2, int par3)
    Gets the light value of the specified block coords.
    int
    getLightValueExt(int par1, int par2, int par3, boolean par4)
    Get light value with flag
    int
    getSkyBlockTypeBrightness(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.
    int
    getSpecialBlockBrightness(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4)
    is only used on stairs and tilled fields
    Return the Vec3Pool object for this world.
    boolean
    isAirBlock(int par1, int par2, int par3)
    Returns true if the block at the specified coordinates is empty
    boolean
    isBlockNormalCube(int par1, int par2, int par3)
    Indicate if a material is a normal solid opaque cube.
    boolean
    isBlockOpaqueCube(int par1, int par2, int par3)
    Returns true if the block at the specified coordinates is an opaque cube.
    int
    isBlockProvidingPowerTo(int par1, int par2, int par3, int par4)
    Is this block powering in the specified direction Args: x, y, z, direction

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.src.IBlockAccess

    editClass
  • Field Details

    • worldObj

      public World 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:
      extendedLevelsInChunkCache in interface IBlockAccess
    • getBlockId

      public int getBlockId(int par1, int par2, int par3)
      Returns the block ID at coords x,y,z
      Specified by:
      getBlockId in interface IBlockAccess
    • getBlockTileEntity

      public TileEntity getBlockTileEntity(int par1, int par2, int par3)
      Returns the TileEntity associated with a given block in X,Y,Z coordinates, or null if no TileEntity exists
      Specified by:
      getBlockTileEntity in interface IBlockAccess
    • getBrightness

      public float getBrightness(int par1, int par2, int par3, int par4)
      Specified by:
      getBrightness in interface IBlockAccess
    • 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:
      getLightBrightnessForSkyBlocks in interface IBlockAccess
    • 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:
      getLightBrightness in interface IBlockAccess
    • 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:
      getBlockMetadata in interface IBlockAccess
    • getBlockMaterial

      public Material getBlockMaterial(int par1, int par2, int par3)
      Returns the block's material.
      Specified by:
      getBlockMaterial in interface IBlockAccess
    • getBiomeGenForCoords

      public BiomeGenBase getBiomeGenForCoords(int par1, int par2)
      Gets the biome for a given set of x/z coordinates
      Specified by:
      getBiomeGenForCoords in interface IBlockAccess
    • 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:
      isBlockOpaqueCube in interface IBlockAccess
    • isBlockNormalCube

      public boolean isBlockNormalCube(int par1, int par2, int par3)
      Indicate if a material is a normal solid opaque cube.
      Specified by:
      isBlockNormalCube in interface IBlockAccess
    • 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:
      doesBlockHaveSolidTopSurface in interface IBlockAccess
    • getWorldVec3Pool

      public Vec3Pool getWorldVec3Pool()
      Return the Vec3Pool object for this world.
      Specified by:
      getWorldVec3Pool in interface IBlockAccess
    • isAirBlock

      public boolean isAirBlock(int par1, int par2, int par3)
      Returns true if the block at the specified coordinates is empty
      Specified by:
      isAirBlock in interface IBlockAccess
    • getSkyBlockTypeBrightness

      public int getSkyBlockTypeBrightness(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. Brightness for SkyBlock.Block is yellowish and independent.
    • getSpecialBlockBrightness

      public int getSpecialBlockBrightness(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4)
      is only used on stairs and tilled fields
    • getHeight

      public int getHeight()
      Returns current world height.
      Specified by:
      getHeight in interface IBlockAccess
    • 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:
      isBlockProvidingPowerTo in interface IBlockAccess