(EnumSkyBlock type, BlockPos pos)
| 782 | } |
| 783 | |
| 784 | public int getLightFor(EnumSkyBlock type, BlockPos pos) |
| 785 | { |
| 786 | if (pos.getY() < 0) |
| 787 | { |
| 788 | pos = new BlockPos(pos.getX(), 0, pos.getZ()); |
| 789 | } |
| 790 | |
| 791 | if (!this.isValid(pos)) |
| 792 | { |
| 793 | return type.defaultLightValue; |
| 794 | } |
| 795 | else if (!this.isBlockLoaded(pos)) |
| 796 | { |
| 797 | return type.defaultLightValue; |
| 798 | } |
| 799 | else |
| 800 | { |
| 801 | Chunk chunk = this.getChunkFromBlockCoords(pos); |
| 802 | return chunk.getLightFor(type, pos); |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | public void setLightFor(EnumSkyBlock type, BlockPos pos, int lightValue) |
| 807 | { |
no test coverage detected