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

Method checkLight

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

Source from the content-addressed store, hash-verified

2772 }
2773
2774 public boolean checkLight(BlockPos pos)
2775 {
2776 boolean flag = false;
2777
2778 if (!this.provider.getHasNoSky())
2779 {
2780 flag |= this.checkLightFor(EnumSkyBlock.SKY, pos);
2781 }
2782
2783 flag = flag | this.checkLightFor(EnumSkyBlock.BLOCK, pos);
2784 return flag;
2785 }
2786
2787 /**
2788 * gets the light level at the supplied position

Callers 4

setBlockStateMethod · 0.95
enqueueRelightChecksMethod · 0.80
func_150811_fMethod · 0.80

Calls 2

checkLightForMethod · 0.95
getHasNoSkyMethod · 0.80

Tested by

no test coverage detected