MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / getLightLevel

Method getLightLevel

Minecraft-Utils/1.13/src/Variables.java:718–729  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

716 }
717
718 @Override
719 public int getLightLevel() {
720 ej localdt = new ej(getPlayerPosX(), getPlayerPosY(), getPlayerPosZ());
721 if (!getWorld().D(localdt) || localdt.p() < 0 || localdt.p() >= 256) {
722 return 0;
723 }
724 bna localObject = getMinecraft().g.l(localdt);
725 if (localObject.s()) {
726 return 0;
727 }
728 return localObject.a(localdt, 0, localObject.z().t.g());
729 }
730
731 @Override
732 public String getEntityCount() {

Callers

nothing calls this directly

Calls 7

getPlayerPosXMethod · 0.95
getPlayerPosYMethod · 0.95
getPlayerPosZMethod · 0.95
getWorldMethod · 0.95
getMinecraftMethod · 0.95
gMethod · 0.80
aMethod · 0.45

Tested by

no test coverage detected