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

Method setLightFor

src/main/java/net/minecraft/world/World.java:806–817  ·  view source on GitHub ↗
(EnumSkyBlock type, BlockPos pos, int lightValue)

Source from the content-addressed store, hash-verified

804 }
805
806 public void setLightFor(EnumSkyBlock type, BlockPos pos, int lightValue)
807 {
808 if (this.isValid(pos))
809 {
810 if (this.isBlockLoaded(pos))
811 {
812 Chunk chunk = this.getChunkFromBlockCoords(pos);
813 chunk.setLightFor(type, pos, lightValue);
814 this.notifyLightSet(pos);
815 }
816 }
817 }
818
819 public void notifyLightSet(BlockPos pos)
820 {

Callers 1

checkLightForMethod · 0.95

Calls 5

isValidMethod · 0.95
isBlockLoadedMethod · 0.95
setLightForMethod · 0.95
notifyLightSetMethod · 0.95

Tested by

no test coverage detected