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

Method func_150809_p

src/main/java/net/minecraft/world/chunk/Chunk.java:1478–1518  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1476 }
1477
1478 public void func_150809_p()
1479 {
1480 this.isTerrainPopulated = true;
1481 this.isLightPopulated = true;
1482 BlockPos blockpos = new BlockPos(this.xPosition << 4, 0, this.zPosition << 4);
1483
1484 if (!this.worldObj.provider.getHasNoSky())
1485 {
1486 if (this.worldObj.isAreaLoaded(blockpos.add(-1, 0, -1), blockpos.add(16, this.worldObj.func_181545_F(), 16)))
1487 {
1488 label92:
1489
1490 for (int i = 0; i < 16; ++i)
1491 {
1492 for (int j = 0; j < 16; ++j)
1493 {
1494 if (!this.func_150811_f(i, j))
1495 {
1496 this.isLightPopulated = false;
1497 break label92;
1498 }
1499 }
1500 }
1501
1502 if (this.isLightPopulated)
1503 {
1504 for (EnumFacing enumfacing : EnumFacing.Plane.HORIZONTAL)
1505 {
1506 int k = enumfacing.getAxisDirection() == EnumFacing.AxisDirection.POSITIVE ? 16 : 1;
1507 this.worldObj.getChunkFromBlockCoords(blockpos.offset(enumfacing, k)).func_180700_a(enumfacing.getOpposite());
1508 }
1509
1510 this.func_177441_y();
1511 }
1512 }
1513 else
1514 {
1515 this.isLightPopulated = false;
1516 }
1517 }
1518 }
1519
1520 private void func_177441_y()
1521 {

Callers 2

populateMethod · 0.95
func_150804_bMethod · 0.95

Calls 11

addMethod · 0.95
func_150811_fMethod · 0.95
offsetMethod · 0.95
func_177441_yMethod · 0.95
getHasNoSkyMethod · 0.80
isAreaLoadedMethod · 0.80
func_181545_FMethod · 0.80
getAxisDirectionMethod · 0.80
func_180700_aMethod · 0.80
getOppositeMethod · 0.80

Tested by

no test coverage detected