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

Method getLightLevel

Minecraft-Utils/1.12.2/src/Variables.java:704–715  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

702 }
703
704 @Override
705 public int getLightLevel() {
706 et localdt = new et(getPlayerPosX(), getPlayerPosY(), getPlayerPosZ());
707 if (!getWorld().e(localdt) || localdt.q() < 0 || localdt.q() >= 256) {
708 return 0;
709 }
710 axw localObject = getMinecraft().f.f(localdt);
711 if (localObject.f()) {
712 return 0;
713 }
714 return localObject.a(localdt, 0);
715 }
716
717 @Override
718 public String getEntityCount() {

Callers

nothing calls this directly

Calls 8

getPlayerPosXMethod · 0.95
getPlayerPosYMethod · 0.95
getPlayerPosZMethod · 0.95
getWorldMethod · 0.95
getMinecraftMethod · 0.95
eMethod · 0.45
fMethod · 0.45
aMethod · 0.45

Tested by

no test coverage detected