package CustomOreGen.Integration.ATG;

import net.minecraft.world.World;
import ttftcuts.atg.api.ATGAPI;
import ttftcuts.atg.api.ATGBiomes;

public class ATGIntegration {

	public static boolean worldIsATG(World world) {
		return ATGAPI.WorldIsATG(world);
	}

	public static int getSurfaceHeight(World world, int x, int z) {
		double normalizedHeight = ATGBiomes.getGeneratorInfo(x, z).get(0);
		return (int)(normalizedHeight * world.getHeight());
	}

}

@@ -69,75 +69,8 @@
 rld;
-%0Aimport ttftcuts.atg.api.ATGAPI;%0Aimport ttftcuts.atg.api.ATGBiomes;
 %0A%0Apu
@@ -156,16 +156,25 @@
 %09return 
+false; //
 ATGAPI.W
@@ -260,16 +260,16 @@
 nt z) %7B%0A
-
 %09%09double
@@ -288,16 +288,21 @@
 eight = 
+0; //
 ATGBiome

disable ATG world height calculation