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

Method getLight

src/main/java/net/minecraft/world/World.java:599–614  ·  view source on GitHub ↗
(BlockPos pos)

Source from the content-addressed store, hash-verified

597 }
598
599 public int getLight(BlockPos pos)
600 {
601 if (pos.getY() < 0)
602 {
603 return 0;
604 }
605 else
606 {
607 if (pos.getY() >= 256)
608 {
609 pos = new BlockPos(pos.getX(), 255, pos.getZ());
610 }
611
612 return this.getChunkFromBlockCoords(pos).getLightSubtracted(pos, 0);
613 }
614 }
615
616 public int getLightFromNeighbors(BlockPos pos)
617 {

Callers 5

getLightFromNeighborsMethod · 0.95
canBlockStayMethod · 0.80
canBlockStayMethod · 0.80
getCanSpawnHereMethod · 0.80

Calls 13

getLightSubtractedMethod · 0.95
getBlockStateMethod · 0.95
upMethod · 0.80
eastMethod · 0.80
westMethod · 0.80
southMethod · 0.80
northMethod · 0.80
getYMethod · 0.65
getXMethod · 0.65
getZMethod · 0.65

Tested by

no test coverage detected