public float getBrightness(int par1, int par2, int par3, int par4)
    {
        int var5 = this.getBlockLightValue(par1, par2, par3);

        if (var5 < par4)
        {
            var5 = par4;
        }

        return this.worldProvider.lightBrightnessTable[var5];
    }