(final BlockPos pos)
| 174 | } |
| 175 | |
| 176 | public BiomeGenBase getBiomeGenForCoords(final BlockPos pos) |
| 177 | { |
| 178 | if (this.isBlockLoaded(pos)) |
| 179 | { |
| 180 | Chunk chunk = this.getChunkFromBlockCoords(pos); |
| 181 | |
| 182 | try |
| 183 | { |
| 184 | return chunk.getBiome(pos, this.provider.getWorldChunkManager()); |
| 185 | } |
| 186 | catch (Throwable throwable) |
| 187 | { |
| 188 | CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Getting biome"); |
| 189 | CrashReportCategory crashreportcategory = crashreport.makeCategory("Coordinates of biome request"); |
| 190 | crashreportcategory.addCrashSectionCallable("Location", new Callable<String>() |
| 191 | { |
| 192 | public String call() throws Exception |
| 193 | { |
| 194 | return CrashReportCategory.getCoordinateInfo(pos); |
| 195 | } |
| 196 | }); |
| 197 | throw new ReportedException(crashreport); |
| 198 | } |
| 199 | } |
| 200 | else |
| 201 | { |
| 202 | return this.provider.getWorldChunkManager().getBiomeGenerator(pos, BiomeGenBase.plains); |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | public WorldChunkManager getWorldChunkManager() |
| 207 | { |
no test coverage detected