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

Method getBiomeGenForCoords

src/main/java/net/minecraft/world/World.java:176–204  ·  view source on GitHub ↗
(final BlockPos pos)

Source from the content-addressed store, hash-verified

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 {

Callers 7

addRainParticlesMethod · 0.95
renderRainSnowMethod · 0.95
getSkyColorMethod · 0.95
canBlockFreezeMethod · 0.95
canSnowAtMethod · 0.95
canLightningStrikeMethod · 0.95
isBlockinHighHumidityMethod · 0.95

Calls 8

isBlockLoadedMethod · 0.95
getBiomeMethod · 0.95
makeCrashReportMethod · 0.95
makeCategoryMethod · 0.95
getWorldChunkManagerMethod · 0.45
getBiomeGeneratorMethod · 0.45

Tested by

no test coverage detected