Gets how bright this entity is.
(float partialTicks)
| 1306 | * Gets how bright this entity is. |
| 1307 | */ |
| 1308 | public float getBrightness(float partialTicks) |
| 1309 | { |
| 1310 | BlockPos blockpos = new BlockPos(this.posX, this.posY + (double)this.getEyeHeight(), this.posZ); |
| 1311 | return this.worldObj.isBlockLoaded(blockpos) ? this.worldObj.getLightBrightness(blockpos) : 0.0F; |
| 1312 | } |
| 1313 | |
| 1314 | /** |
| 1315 | * Sets the reference to the World object. |
no test coverage detected