(BlockPos pos)
| 843 | } |
| 844 | |
| 845 | public IBlockState getBlockState(BlockPos pos) |
| 846 | { |
| 847 | if (!this.isValid(pos)) |
| 848 | { |
| 849 | return Blocks.air.getDefaultState(); |
| 850 | } |
| 851 | else |
| 852 | { |
| 853 | Chunk chunk = this.getChunkFromBlockCoords(pos); |
| 854 | return chunk.getBlockState(pos); |
| 855 | } |
| 856 | } |
| 857 | |
| 858 | /** |
| 859 | * Checks whether its daytime by seeing if the light subtracted from the skylight is less than 4 |