(BlockPos pos)
| 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 | { |
no test coverage detected