MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getBrightness

Method getBrightness

src/main/java/net/minecraft/entity/Entity.java:1308–1312  ·  view source on GitHub ↗

Gets how bright this entity is.

(float partialTicks)

Source from the content-addressed store, hash-verified

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.

Callers 1

onUpdateMinimalMethod · 0.45

Calls 3

getEyeHeightMethod · 0.95
isBlockLoadedMethod · 0.80
getLightBrightnessMethod · 0.80

Tested by

no test coverage detected