MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / onTerrainGenEvent

Method onTerrainGenEvent

src/main/java/gregtech/GT_Proxy.java:143–153  ·  view source on GitHub ↗
(DecorateBiomeEvent.Decorate aEvent)

Source from the content-addressed store, hash-verified

141 if (mDisableVanillaOres && !WD.dimTF(aEvent.world) && PREVENTED_ORES.contains(aEvent.type)) aEvent.setResult(Result.DENY);
142 }
143 @SubscribeEvent(priority = EventPriority.HIGHEST)
144 public void onTerrainGenEvent(DecorateBiomeEvent.Decorate aEvent) {
145 if (aEvent.world.provider.dimensionId == 0) {
146 if (MD.RTG.mLoaded) {
147 String tClassName = UT.Reflection.getLowercaseClass(aEvent.world.provider.terrainType);
148 if ("WorldProviderSurfaceRTG".equalsIgnoreCase(tClassName) || "WorldTypeRTG".equalsIgnoreCase(tClassName)) return;
149 }
150 if (GENERATE_STREETS && (UT.Code.inside(-48, 47, aEvent.chunkX) || UT.Code.inside(-48, 47, aEvent.chunkZ))) {aEvent.setResult(Result.DENY); return;}
151 if (GENERATE_BIOMES && (UT.Code.inside(-96, 95, aEvent.chunkX) && UT.Code.inside(-96, 95, aEvent.chunkZ))) {aEvent.setResult(Result.DENY); return;}
152 }
153 }
154 @SubscribeEvent(priority = EventPriority.HIGHEST)
155 public void onTerrainGenEvent(PopulateChunkEvent.Populate aEvent) {
156 if (aEvent.world.provider.dimensionId == 0) {

Callers

nothing calls this directly

Calls 2

getLowercaseClassMethod · 0.80
insideMethod · 0.80

Tested by

no test coverage detected