aboutsummaryrefslogtreecommitdiff
path: root/src/Java
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2019-07-25 17:20:20 +0100
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2019-07-25 17:20:20 +0100
commit5a3076e52ea188c69851e0c8711937485123dc18 (patch)
treea91524cd149dccee993f389a1275b66517e10936 /src/Java
parentccbc6cdf102965d4614c1724518dd88c19f8f9d5 (diff)
downloadGT5-Unofficial-5a3076e52ea188c69851e0c8711937485123dc18.tar.gz
GT5-Unofficial-5a3076e52ea188c69851e0c8711937485123dc18.tar.bz2
GT5-Unofficial-5a3076e52ea188c69851e0c8711937485123dc18.zip
- Removed Unused GC planetary system code. (For now)
- Removed Heat Pipes. (For now)
Diffstat (limited to 'src/Java')
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/HANDLER_GalactiCraft.java7
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/core/dim/BaseWorldProviderGalactic.java129
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/core/dim/BasicChunkProviderGalactic.java18
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/core/space/BaseGalacticDimension.java304
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/core/space/BaseSolarSystem.java126
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/ChunkProviderGalactic.java127
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/ChunkProviderGalaxyLakes.java529
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/GalacticBiomeGenBase.java39
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/GalacticMapGenCavesBase.java191
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/biome/BiomeGenGalaxy.java20
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/SystemHD10180.java58
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/b/blocks/BlockRegistrationHD10180B.java62
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/b/dim/WorldProviderHD10180B.java13
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/c/blocks/BlockRegistrationHD10180C.java62
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/c/dim/WorldProviderHD10180C.java13
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/d/blocks/BlockRegistrationHD10180D.java62
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/d/dim/WorldProviderHD10180D.java13
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/objects/BiomeSettings.java29
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/objects/DimensionSettings.java77
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/objects/IPlanetBlockRegister.java31
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/objects/PlanetGenerator.java54
-rw-r--r--src/Java/gtPlusPlus/xmod/galacticraft/system/objects/WorldProviderSettings.java30
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Heat.java532
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java23
24 files changed, 15 insertions, 2534 deletions
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/HANDLER_GalactiCraft.java b/src/Java/gtPlusPlus/xmod/galacticraft/HANDLER_GalactiCraft.java
index f58bd06cab..d5c7a7e4e5 100644
--- a/src/Java/gtPlusPlus/xmod/galacticraft/HANDLER_GalactiCraft.java
+++ b/src/Java/gtPlusPlus/xmod/galacticraft/HANDLER_GalactiCraft.java
@@ -1,15 +1,10 @@
package gtPlusPlus.xmod.galacticraft;
-import java.util.HashMap;
-
-import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.lib.LoadedMods;
-import gtPlusPlus.xmod.galacticraft.system.core.space.BaseSolarSystem;
-import gtPlusPlus.xmod.galacticraft.system.hd10180.SystemHD10180;
public class HANDLER_GalactiCraft {
- private static final HashMap<String, BaseSolarSystem> mSystemsCache = new HashMap<String, BaseSolarSystem>();
+ //private static final HashMap<String, BaseSolarSystem> mSystemsCache = new HashMap<String, BaseSolarSystem>();
public static void preInit(){
if (LoadedMods.GalacticraftCore){
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/dim/BaseWorldProviderGalactic.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/core/dim/BaseWorldProviderGalactic.java
deleted file mode 100644
index 6b15b388cd..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/dim/BaseWorldProviderGalactic.java
+++ /dev/null
@@ -1,129 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.core.dim;
-
-import java.util.Random;
-
-import gtPlusPlus.api.objects.Logger;
-import gtPlusPlus.api.objects.random.XSTR;
-import gtPlusPlus.xmod.galacticraft.system.core.space.BaseGalacticDimension;
-import gtPlusPlus.xmod.galacticraft.system.core.world.gen.GalacticBiomeGenBase;
-import gtPlusPlus.xmod.galacticraft.system.objects.BiomeSettings;
-import gtPlusPlus.xmod.galacticraft.system.objects.DimensionSettings;
-import gtPlusPlus.xmod.galacticraft.system.objects.PlanetGenerator;
-import gtPlusPlus.xmod.galacticraft.system.objects.WorldProviderSettings;
-import micdoodle8.mods.galacticraft.core.util.ConfigManagerCore;
-import net.minecraft.init.Blocks;
-import net.minecraft.world.World;
-import net.minecraft.world.biome.BiomeDecorator;
-import net.minecraft.world.biome.BiomeGenBase;
-import net.minecraftforge.common.BiomeDictionary;
-import net.minecraftforge.common.MinecraftForge;
-import net.minecraftforge.common.BiomeDictionary.Type;
-import net.minecraftforge.event.terraingen.TerrainGen;
-import net.minecraftforge.event.terraingen.DecorateBiomeEvent.Post;
-import net.minecraftforge.event.terraingen.DecorateBiomeEvent.Pre;
-import net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType;
-
-public class BaseWorldProviderGalactic {
-
- private final PlanetGenerator mThisPlanet;
- private final BaseGalacticDimension mDim;
- public final BiomeGenBase mBiome;
-
- //new DimensionSettings(b, aCP, 5, true, 1, false, 240f, 0.1f, 0.2f, false, 48000L)
-
- public BaseWorldProviderGalactic(WorldProviderSettings b) {
- this(b.getPlanet(), b.getDimSettings(), b.getBiomeSettings());
- }
-
- private BaseWorldProviderGalactic(PlanetGenerator b, DimensionSettings aDimSettings, BiomeSettings aBiomeSettings) {
- mThisPlanet = b;
- mBiome = tryCreateBiome(aBiomeSettings);
- if (mBiome != null) {
- Logger.SPACE("Created Biome for "+b.getPlanet().getLocalizedName()+".");
- mDim = new BaseGalacticDimension(b, mBiome, aDimSettings.getChunkProvider(), aDimSettings);
- }
- else {
- Logger.SPACE("Failed to Create Biome for "+b.getPlanet().getLocalizedName()+", Using Deep Ocean as fallback.");
- mDim = new BaseGalacticDimension(b, BiomeGenBase.deepOcean, aDimSettings.getChunkProvider(), aDimSettings);
- }
- }
-
- public synchronized final BaseGalacticDimension getDim() {
- return mDim;
- }
-
- public BiomeGenBase tryCreateBiome(BiomeSettings aSettings) {
- BiomeGenBase x = (new BiomeGenMain(aSettings.getID())).setBiomeName(aSettings.getName()).setHeight(aSettings.getHeight());
- return x;
- }
-
- public class BiomeGenBasePlanetSurface extends GalacticBiomeGenBase {
- public BiomeGenBase aBiome;
-
- public BiomeGenBasePlanetSurface(int id) {
- super(id);
- this.enableRain = true;
- this.enableSnow = true;
- this.topBlock = Blocks.stone;
- this.fillerBlock = Blocks.stone;
- }
-
- public BiomeDecorator createBiomeDecorator() {
- return new BiomeDecoratorGalactic();
- }
-
- protected BiomeDecoratorGalactic getBiomeDecorator() {
- return (BiomeDecoratorGalactic) this.theBiomeDecorator;
- }
-
- }
-
- public class BiomeGenMain extends BiomeGenBasePlanetSurface {
- public BiomeGenMain(int aID) {
- super(aID);
- this.enableRain = false;
- this.enableSnow = false;
- this.topBlock = mThisPlanet.getTask().getTopLayer();
- this.topMeta = 0;
- this.fillerBlock = mThisPlanet.getTask().getSoil();
- this.fillerMeta = 0;
- this.stoneBlock = mThisPlanet.getTask().getStone();
- this.stoneMeta = 0;
- this.spawnableCaveCreatureList.clear();
- this.spawnableCreatureList.clear();
- this.spawnableMonsterList.clear();
- this.spawnableWaterCreatureList.clear();
- if (!ConfigManagerCore.disableBiomeTypeRegistrations) {
- BiomeDictionary.registerBiomeType(this, new Type[]{Type.COLD, Type.DRY, Type.DEAD, Type.SPOOKY});
- }
-
- }
- }
-
- public class BiomeDecoratorGalactic extends BiomeDecorator {
-
- public void decorateChunk(World world, Random rand, BiomeGenBase biome, int x, int z) {
- if (this.currentWorld != null) {
- throw new RuntimeException("Already decorating!!");
- } else {
- this.currentWorld = world;
- this.randomGenerator = new XSTR(rand.nextLong());
- this.chunk_X = x;
- this.chunk_Z = z;
- this.genDecorations(biome);
- this.currentWorld = null;
- this.randomGenerator = null;
- }
- }
-
- protected void genDecorations(BiomeGenBase biome) {
- MinecraftForge.EVENT_BUS.post(new Pre(this.currentWorld, this.randomGenerator, this.chunk_X, this.chunk_Z));
- MinecraftForge.EVENT_BUS.post(new Post(this.currentWorld, this.randomGenerator, this.chunk_X, this.chunk_Z));
- }
-
- protected boolean getGen(EventType event) {
- return TerrainGen.decorate(this.currentWorld, this.randomGenerator, this.chunk_X, this.chunk_Z, event);
- }
- }
-
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/dim/BasicChunkProviderGalactic.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/core/dim/BasicChunkProviderGalactic.java
deleted file mode 100644
index 9a912fdfc0..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/dim/BasicChunkProviderGalactic.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.core.dim;
-
-import gtPlusPlus.xmod.galacticraft.system.core.world.gen.ChunkProviderGalactic;
-import micdoodle8.mods.galacticraft.api.prefab.world.gen.BiomeDecoratorSpace;
-import net.minecraft.world.World;
-
-public class BasicChunkProviderGalactic extends ChunkProviderGalactic {
-
- public BasicChunkProviderGalactic(World par1World, long seed, boolean mapFeaturesEnabled) {
- super(par1World, seed, mapFeaturesEnabled);
- }
-
- @Override
- public BiomeDecoratorSpace getBiomeGenerator() {
- return null;
- }
-
-}
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/space/BaseGalacticDimension.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/core/space/BaseGalacticDimension.java
deleted file mode 100644
index c0283604e8..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/space/BaseGalacticDimension.java
+++ /dev/null
@@ -1,304 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.core.space;
-
-import java.util.Random;
-
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import gtPlusPlus.xmod.galacticraft.system.objects.DimensionSettings;
-import gtPlusPlus.xmod.galacticraft.system.objects.PlanetGenerator;
-import micdoodle8.mods.galacticraft.api.galaxies.CelestialBody;
-import micdoodle8.mods.galacticraft.api.prefab.world.gen.WorldChunkManagerSpace;
-import micdoodle8.mods.galacticraft.api.prefab.world.gen.WorldProviderSpace;
-import micdoodle8.mods.galacticraft.api.vector.Vector3;
-import micdoodle8.mods.galacticraft.api.world.IExitHeight;
-import micdoodle8.mods.galacticraft.api.world.ISolarLevel;
-import micdoodle8.mods.galacticraft.api.world.ITeleportType;
-import micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats;
-import micdoodle8.mods.galacticraft.core.util.ConfigManagerCore;
-import micdoodle8.mods.galacticraft.planets.mars.entities.EntityLandingBalloons;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.util.MathHelper;
-import net.minecraft.world.World;
-import net.minecraft.world.WorldServer;
-import net.minecraft.world.biome.BiomeGenBase;
-import net.minecraft.world.chunk.IChunkProvider;
-
-public class BaseGalacticDimension {
-
- private final WorldChunkManagerGalactic mGlobalChunkManager;
- private final WorldProviderGalactic mWorldProvider;
- private final Class<? extends IChunkProvider> mChunkProvider;
- private final PlanetGenerator mPlanet;
-
- public BaseGalacticDimension(PlanetGenerator aPlanet, BiomeGenBase aBiomeForDim, Class<? extends IChunkProvider> aChunkProvider, DimensionSettings aSettings) {
- mPlanet = aPlanet;
- mGlobalChunkManager = new WorldChunkManagerGalactic(aBiomeForDim);
- mChunkProvider = aChunkProvider;
- mWorldProvider = new WorldProviderGalactic(aSettings);
- }
-
- public class WorldChunkManagerGalactic extends WorldChunkManagerSpace {
- private final BiomeGenBase mBiome;
-
- public WorldChunkManagerGalactic(BiomeGenBase aDimBiome) {
- mBiome = aDimBiome;
- }
-
- public BiomeGenBase getBiome() {
- return mBiome;
- }
- }
-
- public class WorldProviderGalactic extends WorldProviderSpace implements IExitHeight, ISolarLevel, ITeleportType {
-
- private final int mTierRequirement;
- private final PlanetGenerator mPlanet;
- private final boolean mAtmosphere;
- private final int mPressure;
- private final boolean mSolarRadiation;
- private final float mCloudHeight;
- private final float mGravity;
- private final float mMeteorFreq;
- private final boolean mCanRainOrSnow;
- private final long mDayLength;
- private final Class<? extends IChunkProvider> mChunkProvider;
-
- public WorldProviderGalactic(DimensionSettings aSettings) {
- mPlanet = aSettings.getPlanet();
- mTierRequirement = aSettings.getTierRequirement();
- mAtmosphere = aSettings.hasAtmosphere();
- mPressure = aSettings.getPressure();
- mSolarRadiation = aSettings.hasSolarRadiation();
- mCloudHeight = aSettings.getCloudHeight();
- mGravity = aSettings.getGravity();
- mMeteorFreq = aSettings.getMeteorFreq();
- mCanRainOrSnow = aSettings.hasRainOrSnow();
- mDayLength = aSettings.getDayLength();
- mChunkProvider = aSettings.getChunkProvider();
- }
-
- public WorldProviderGalactic(PlanetGenerator aPlanet, Class<? extends IChunkProvider> aChunkProvider, int aTierRequirement, boolean aHasBreathableAtmo,
- int aPressure, boolean aSolarRadiation, float aCloudHeight, float aGravity, float aMeteorFreq, boolean aCanRainOrSnow, long aDayLength) {
- mPlanet = aPlanet;
- mTierRequirement = aTierRequirement;
- mAtmosphere = aHasBreathableAtmo;
- mPressure = aPressure;
- mSolarRadiation = aSolarRadiation;
- mCloudHeight = aCloudHeight;
- mGravity = aGravity;
- mMeteorFreq = aMeteorFreq;
- mCanRainOrSnow = aCanRainOrSnow;
- mDayLength = aDayLength;
- mChunkProvider = aChunkProvider;
- }
-
- public boolean canSpaceshipTierPass(int tier) {
- return tier >= mTierRequirement;
- }
-
- @SideOnly(Side.CLIENT)
- public float getCloudHeight() {
- return mCloudHeight;
- }
-
- public double getHorizon() {
- return 44.0D;
- }
-
- public float getFallDamageModifier() {
- return 0.16F;
- }
-
- public double getFuelUsageMultiplier() {
- return 0.8D;
- }
-
- public float getGravity() {
- return mGravity;
- }
-
- public double getMeteorFrequency() {
- return mMeteorFreq;
- }
-
- public float getSoundVolReductionAmount() {
- return Float.MAX_VALUE;
- }
-
- public float getThermalLevelModifier() {
- return 0.0F;
- }
-
- public float getWindLevel() {
- return 0.6F;
- }
-
- public boolean canRainOrSnow() {
- return mCanRainOrSnow;
- }
-
- public boolean canBlockFreeze(int x, int y, int z, boolean byWater) {
- return false;
- }
-
- public CelestialBody getCelestialBody() {
- return mPlanet.getPlanet();
- }
-
- public Class<? extends IChunkProvider> getChunkProviderClass() {
- return mChunkProvider;
- }
-
- public long getDayLength() {
- return mDayLength;
- }
-
- public boolean hasBreathableAtmosphere() {
- return mAtmosphere;
- }
-
- public Vector3 getFogColor() {
- float f = 1.0F - this.getStarBrightness(1.0F);
- return new Vector3((double) (0.65882355F * f), (double) (0.84705883F * f), (double) (1.0F * f));
- }
-
- public Vector3 getSkyColor() {
- float f = 1.0F - this.getStarBrightness(1.0F);
- return new Vector3((double) (0.25882354F * f), (double) (0.6666667F * f), (double) (1.0F * f));
- }
-
- public boolean isSkyColored() {
- return true;
- }
-
- public Class<? extends WorldChunkManagerGalactic> getWorldChunkManagerClass() {
- return WorldChunkManagerGalactic.class;
- }
-
- public boolean hasSunset() {
- return false;
- }
-
- public boolean shouldForceRespawn() {
- return !ConfigManagerCore.forceOverworldRespawn;
- }
-
- public double getSolarEnergyMultiplier() {
- return 0.8D;
- }
-
- public double getYCoordinateToTeleport() {
- return 800.0D;
- }
-
- public Vector3 getEntitySpawnLocation(WorldServer arg0, Entity arg1) {
- return new Vector3(arg1.posX, ConfigManagerCore.disableLander ? 250.0D : 900.0D, arg1.posZ);
- }
-
- public Vector3 getParaChestSpawnLocation(WorldServer arg0, EntityPlayerMP arg1, Random arg2) {
- if (ConfigManagerCore.disableLander) {
- double x = (arg2.nextDouble() * 2.0D - 1.0D) * 5.0D;
- double z = (arg2.nextDouble() * 2.0D - 1.0D) * 5.0D;
- return new Vector3(x, 220.0D, z);
- } else {
- return null;
- }
- }
-
- public Vector3 getPlayerSpawnLocation(WorldServer arg0, EntityPlayerMP arg1) {
- if (arg1 != null) {
- GCPlayerStats stats = GCPlayerStats.get(arg1);
- return new Vector3(stats.coordsTeleportedFromX, ConfigManagerCore.disableLander ? 250.0D : 900.0D,
- stats.coordsTeleportedFromZ);
- } else {
- return null;
- }
- }
-
- public void onSpaceDimensionChanged(World arg0, EntityPlayerMP player, boolean arg2) {
- if (player != null && GCPlayerStats.get(player).teleportCooldown <= 0) {
- if (player.capabilities.isFlying) {
- player.capabilities.isFlying = false;
- }
-
- EntityLandingBalloons lander = new EntityLandingBalloons(player);
- if (!arg0.isRemote) {
- arg0.spawnEntityInWorld(lander);
- }
-
- GCPlayerStats.get(player).teleportCooldown = 10;
- }
-
- }
-
- public boolean useParachute() {
- return ConfigManagerCore.disableLander;
- }
-
- @SideOnly(Side.CLIENT)
- public float getStarBrightness(float par1) {
- float var2 = this.worldObj.getCelestialAngle(par1);
- float var3 = 1.0F - (MathHelper.cos(var2 * 3.1415927F * 2.0F) * 2.0F + 0.25F);
- if (var3 < 0.0F) {
- var3 = 0.0F;
- }
-
- if (var3 > 1.0F) {
- var3 = 1.0F;
- }
-
- return var3 * var3 * 0.5F + 0.3F;
- }
-
- @SideOnly(Side.CLIENT)
- public float getSunBrightness(float par1) {
- float f1 = this.worldObj.getCelestialAngle(1.0F);
- float f2 = 1.25F - (MathHelper.cos(f1 * 3.1415927F * 2.0F) * 2.0F + 0.2F);
- if (f2 < 0.0F) {
- f2 = 0.0F;
- }
-
- if (f2 > 1.0F) {
- f2 = 1.0F;
- }
-
- f2 = 1.2F - f2;
- return f2 * 0.2F;
- }
-
- public void setupAdventureSpawn(EntityPlayerMP player) {
- }
-
- public int AtmosphericPressure() {
- return mPressure;
- }
-
- public boolean SolarRadiation() {
- return mSolarRadiation;
- }
- }
-
- public synchronized final WorldChunkManagerGalactic getGlobalChunkManager() {
- return mGlobalChunkManager;
- }
-
- public synchronized final WorldProviderGalactic getWorldProvider() {
- return mWorldProvider;
- }
-
- public synchronized final Class<? extends WorldProviderSpace> getWorldProviderClass() {
- return mWorldProvider.getClass();
- }
-
- public synchronized final Class<? extends IChunkProvider> getChunkProvider() {
- return mChunkProvider;
- }
-
- public synchronized final PlanetGenerator getPlanet() {
- return mPlanet;
- }
-
-
-
-}
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/space/BaseSolarSystem.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/core/space/BaseSolarSystem.java
deleted file mode 100644
index cb629f211f..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/space/BaseSolarSystem.java
+++ /dev/null
@@ -1,126 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.core.space;
-
-import gtPlusPlus.api.objects.Logger;
-import gtPlusPlus.api.objects.data.AutoMap;
-import gtPlusPlus.core.lib.CORE;
-import gtPlusPlus.xmod.galacticraft.system.objects.IPlanetBlockRegister;
-import gtPlusPlus.xmod.galacticraft.system.objects.PlanetGenerator;
-import micdoodle8.mods.galacticraft.api.GalacticraftRegistry;
-import micdoodle8.mods.galacticraft.api.galaxies.GalaxyRegistry;
-import micdoodle8.mods.galacticraft.api.galaxies.Planet;
-import micdoodle8.mods.galacticraft.api.galaxies.SolarSystem;
-import micdoodle8.mods.galacticraft.api.galaxies.Star;
-import micdoodle8.mods.galacticraft.api.prefab.world.gen.WorldProviderSpace;
-import micdoodle8.mods.galacticraft.api.galaxies.CelestialBody.ScalableDistance;
-import micdoodle8.mods.galacticraft.api.vector.Vector3;
-import micdoodle8.mods.galacticraft.api.world.ITeleportType;
-import micdoodle8.mods.galacticraft.planets.mars.dimension.WorldProviderMars;
-import net.minecraft.util.ResourceLocation;
-
-public abstract class BaseSolarSystem {
-
- public final String mSystemName;
- private SolarSystem mSolarSystem;
- private Star mStar;
- private AutoMap<Planet> mPlanetMap = new AutoMap<Planet>();
-
-
- public BaseSolarSystem(String aSystemName) {
- mSystemName = aSystemName;
- Logger.SPACE("Creating new Solar System: "+aSystemName);
- }
-
- public SolarSystem getSystem() {
- return mSolarSystem;
- }
-
- public Star getStar() {
- return mStar;
- }
-
- public AutoMap<Planet> getPlanets(){
- return mPlanetMap;
- }
-
- public abstract void preInit();
-
- public final void init() {
- Logger.SPACE("Initialising planetary masses within "+mSystemName);
- initSolarSystem();
- }
-
- public abstract void initSolarSystem();
-
- public static void registryteleport(Class<? extends WorldProviderSpace> aWorldProvider, ITeleportType aWorldProviderInstance) {
- Logger.SPACE("Registering world teleporter for "+aWorldProvider.getName());
- GalacticraftRegistry.registerTeleportType(aWorldProvider, aWorldProviderInstance);
- }
-
- public boolean registerSolarSystem(SolarSystem aSystem) {
- this.mSolarSystem = aSystem;
- Logger.SPACE("Registering "+mSystemName);
- return GalaxyRegistry.registerSolarSystem(aSystem);
- }
-
- public boolean registerPlanet(BaseGalacticDimension aDimension) {
- return registerPlanet(aDimension.getPlanet().getPlanet(), aDimension.getWorldProviderClass(), aDimension.getWorldProvider());
- }
- public boolean registerPlanet(Planet aPlanet, Class<? extends WorldProviderSpace> aWorldProvider, ITeleportType aWorldProviderInstance) {
- try {
- Logger.SPACE("Registering "+aPlanet.getLocalizedName());
- mPlanetMap.put(aPlanet);
- GalaxyRegistry.registerPlanet(aPlanet);
- registryteleport(aWorldProvider, aWorldProviderInstance);
- GalacticraftRegistry.registerRocketGui(aWorldProvider, new ResourceLocation(CORE.MODID, "textures/space/RocketGui.png"));
- return true;
- }
- catch(Throwable t) {
- return false;
- }
- }
-
- public SolarSystem createSolarSystem(String aSystemName, String aParentGalaxyName, Vector3 aMapPosition) {
- Logger.SPACE("Creating Solar System in GC using information from "+mSystemName);
- SolarSystem aSolarSystem = (new SolarSystem(aSystemName, aParentGalaxyName)).setMapPosition(aMapPosition);
- return aSolarSystem;
- }
-
- public Star createStar(String aStarName, int aTierRequired) {
- Logger.SPACE("Creating new Star named "+aStarName);
- Star aStar = (Star) (new Star(aStarName)).setParentSolarSystem(getSystem()).setTierRequired(aTierRequired);
- aStar.setBodyIcon(getGalacticTexture(aStarName));
- return aStar;
- }
-
- public PlanetGenerator createPlanet(String aPlanetName, int aTier, float[] aRingRGB, float aPhaseShift, float aRelativeDistanceFromCentMin, float aRelativeDistanceFromCentMax, float aRelativeOrbitTime, IPlanetBlockRegister aPlanetBlocks) {
- Logger.SPACE("Creating "+aPlanetName);
- Planet aNewPlanet = (new Planet(aPlanetName)).setParentSolarSystem(getSystem());
- aNewPlanet.setRingColorRGB(aRingRGB[0], aRingRGB[1], aRingRGB[2]);
- aNewPlanet.setPhaseShift(aPhaseShift);
- aNewPlanet.setBodyIcon(getGalacticTexture(aPlanetName));
- aNewPlanet.setRelativeDistanceFromCenter(new ScalableDistance(aRelativeDistanceFromCentMin, aRelativeDistanceFromCentMax));
- aNewPlanet.setRelativeOrbitTime(aRelativeOrbitTime);
- if (aTier > 0)
- aNewPlanet.setTierRequired(aTier);
- PlanetGenerator aPlanet = new PlanetGenerator(aNewPlanet, aPlanetBlocks);
- return aPlanet;
- }
-
- public void setMainStarForSolarSystem(Star aStar) {
- this.mStar = aStar;
- getSystem().setMainStar(aStar);
- Logger.SPACE("Setting "+aStar.getName()+" as main Star for "+getSystem().getName()+" within the "+getSystem().getLocalizedParentGalaxyName()+" Galaxy.");
- }
-
- private ResourceLocation getGalacticTexture(String aName) {
- String aText = getSystem().getUnlocalizedName();
- aText = aText.replace("solarsystem.", "");
- aName = aName.replace(aText+"-", "");
-
- ResourceLocation aVal = new ResourceLocation(CORE.MODID, "textures/space/"+aText.toLowerCase()+"/"+aName+".png");
- Logger.SPACE("Trying to obtain ResourceLocation for "+aVal.toString());
- return aVal;
- }
-
-
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/ChunkProviderGalactic.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/ChunkProviderGalactic.java
deleted file mode 100644
index aafa9ef9a1..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/ChunkProviderGalactic.java
+++ /dev/null
@@ -1,127 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.core.world.gen;
-
-import java.util.List;
-
-import com.google.common.collect.Lists;
-
-import gtPlusPlus.api.objects.data.AutoMap;
-import gtPlusPlus.core.util.reflect.ReflectionUtils;
-import micdoodle8.mods.galacticraft.api.prefab.core.BlockMetaPair;
-import micdoodle8.mods.galacticraft.api.prefab.world.gen.BiomeDecoratorSpace;
-import micdoodle8.mods.galacticraft.api.prefab.world.gen.MapGenBaseMeta;
-import net.minecraft.block.Block;
-import net.minecraft.world.World;
-import net.minecraft.world.biome.BiomeGenBase;
-import net.minecraft.world.biome.BiomeGenBase.SpawnListEntry;
-import net.minecraft.world.chunk.IChunkProvider;
-
-public abstract class ChunkProviderGalactic extends ChunkProviderGalaxyLakes {
-
- private List<MapGenBaseMeta> worldGenerators;
- private BiomeGenBase[] biomesForGeneration = this.getBiomesForGeneration();
- private final GalacticMapGenCavesBase caveGenerator = new GalacticMapGenCavesBase();
-
- protected List<MapGenBaseMeta> getWorldGenerators() {
- List<MapGenBaseMeta> generators = Lists.newArrayList();
- return generators;
- }
-
- public ChunkProviderGalactic(World par1World, long seed, boolean mapFeaturesEnabled) {
- super(par1World, seed, mapFeaturesEnabled);
- }
-
- public abstract BiomeDecoratorSpace getBiomeGenerator();
-
- protected BiomeGenBase[] getBiomesForGeneration() {
- return new BiomeGenBase[] { GalacticBiomeGenBase.mGalaxy };
- }
-
- protected SpawnListEntry[] getCreatures() {
- return new SpawnListEntry[0];
- }
-
- public double getHeightModifier() {
- return 24.0D;
- }
-
- protected SpawnListEntry[] getMonsters() {
-
- Class aSkele = ReflectionUtils.getClass("micdoodle8.mods.galacticraft.core.entities.EntityEvolvedSkeleton");
- Class aCreeper = ReflectionUtils.getClass("micdoodle8.mods.galacticraft.core.entities.EntityEvolvedCreeper");
- Class aSpider = ReflectionUtils.getClass("micdoodle8.mods.galacticraft.core.entities.EntityEvolvedSpider");
- Class aEnderman = ReflectionUtils.getClass("galaxyspace.SolarSystem.planets.pluto.entities.EntityEvolvedEnderman");
-
- SpawnListEntry skele;
- SpawnListEntry creeper;
- SpawnListEntry spider;
- SpawnListEntry enderman;
-
- AutoMap<SpawnListEntry> aMobs = new AutoMap<SpawnListEntry>();
-
- if (aSkele != null) {
- skele = new SpawnListEntry(aSkele, 100, 4, 4);
- aMobs.put(skele);
- }
- if (aCreeper != null) {
- creeper = new SpawnListEntry(aCreeper, 100, 4, 4);
- aMobs.put(creeper);
- }
- if (aSpider != null) {
- spider = new SpawnListEntry(aSpider, 100, 4, 4);
- aMobs.put(spider);
- }
- if (aEnderman != null) {
- enderman = new SpawnListEntry(aEnderman, 100, 4, 4);
- aMobs.put(enderman);
- }
-
- return aMobs.toArray();
- }
-
- public void onPopulate(IChunkProvider arg0, int arg1, int arg2) {
- }
-
- public boolean chunkExists(int x, int y) {
- return false;
- }
-
- protected SpawnListEntry[] getWaterCreatures() {
- return new SpawnListEntry[0];
- }
-
- public BlockMetaPair getGrassBlock() {
- return new BlockMetaPair(null, (byte) 0);
- }
-
- public BlockMetaPair getDirtBlock() {
- return new BlockMetaPair(null, (byte) 0);
- }
-
- public BlockMetaPair getStoneBlock() {
- return new BlockMetaPair(null, (byte) 0);
- }
-
- protected boolean enableBiomeGenBaseBlock() {
- return false;
- }
-
- public void onChunkProvider(int cX, int cZ, Block[] blocks, byte[] metadata) {
- }
-
- public int getWaterLevel() {
- return 110;
- }
-
- public boolean canGenerateWaterBlock() {
- return true;
- }
-
- protected BlockMetaPair getWaterBlock() {
- return new BlockMetaPair(null, (byte) 0);
- }
-
- public boolean canGenerateIceBlock() {
- return false;
- }
-
-}
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/ChunkProviderGalaxyLakes.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/ChunkProviderGalaxyLakes.java
deleted file mode 100644
index a3d696d7c5..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/ChunkProviderGalaxyLakes.java
+++ /dev/null
@@ -1,529 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.core.world.gen;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Random;
-
-import gtPlusPlus.api.objects.random.XSTR;
-import micdoodle8.mods.galacticraft.api.prefab.core.BlockMetaPair;
-import micdoodle8.mods.galacticraft.api.prefab.world.gen.BiomeDecoratorSpace;
-import micdoodle8.mods.galacticraft.api.prefab.world.gen.MapGenBaseMeta;
-import micdoodle8.mods.galacticraft.core.perlin.generator.Gradient;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockFalling;
-import net.minecraft.entity.EnumCreatureType;
-import net.minecraft.init.Blocks;
-import net.minecraft.util.IProgressUpdate;
-import net.minecraft.util.MathHelper;
-import net.minecraft.world.ChunkPosition;
-import net.minecraft.world.SpawnerAnimals;
-import net.minecraft.world.World;
-import net.minecraft.world.biome.BiomeGenBase;
-import net.minecraft.world.biome.BiomeGenBase.SpawnListEntry;
-import net.minecraft.world.chunk.Chunk;
-import net.minecraft.world.chunk.IChunkProvider;
-import net.minecraft.world.gen.ChunkProviderGenerate;
-import net.minecraft.world.gen.NoiseGeneratorOctaves;
-import net.minecraft.world.gen.NoiseGeneratorPerlin;
-
-public abstract class ChunkProviderGalaxyLakes extends ChunkProviderGenerate {
- protected Random rand;
- private NoiseGeneratorOctaves noiseGen4;
- public NoiseGeneratorOctaves noiseGen5;
- public NoiseGeneratorOctaves noiseGen6;
- public NoiseGeneratorOctaves mobSpawnerNoise;
- protected World worldObj;
- private BiomeGenBase[] biomesForGeneration = this.getBiomesForGeneration();
- double[] noise3;
- double[] noise1;
- double[] noise2;
- double[] noise5;
- double[] noise6;
- float[] squareTable;
- private NoiseGeneratorOctaves field_147431_j;
- private NoiseGeneratorOctaves field_147432_k;
- private NoiseGeneratorOctaves field_147429_l;
- private NoiseGeneratorPerlin field_147430_m;
- private double[] terrainCalcs;
- private float[] parabolicField;
- double[] field_147427_d;
- double[] field_147428_e;
- double[] field_147425_f;
- double[] field_147426_g;
- int[][] field_73219_j = new int[32][32];
- private final Gradient noiseGen8;
- private List<MapGenBaseMeta> worldGenerators;
-
- public ChunkProviderGalaxyLakes(World world, long seed, boolean flag) {
- super(world, seed, flag);
- this.worldObj = world;
- this.rand = new XSTR(seed);
- this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4);
- this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10);
- this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16);
- this.noiseGen8 = new Gradient(this.rand.nextLong(), 2, 0.25F);
- this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8);
- this.field_147431_j = new NoiseGeneratorOctaves(this.rand, 16);
- this.field_147432_k = new NoiseGeneratorOctaves(this.rand, 16);
- this.field_147429_l = new NoiseGeneratorOctaves(this.rand, 8);
- this.field_147430_m = new NoiseGeneratorPerlin(this.rand, 4);
- this.terrainCalcs = new double[825];
- this.parabolicField = new float[25];
-
- for (int j = -2; j <= 2; ++j) {
- for (int k = -2; k <= 2; ++k) {
- float f = 10.0F / MathHelper.sqrt_float((float) (j * j + k * k) + 0.2F);
- this.parabolicField[j + 2 + (k + 2) * 5] = f;
- }
- }
-
- }
-
- public Chunk provideChunk(int x, int z) {
- this.rand.setSeed((long) x * 341873128712L + (long) z * 132897987541L);
- Block[] blockStorage = new Block[65536];
- byte[] metaStorage = new byte[65536];
- this.generateTerrain(x, z, blockStorage, metaStorage);
- this.biomesForGeneration = this.worldObj.getWorldChunkManager().loadBlockGeneratorData(this.biomesForGeneration,
- x * 16, z * 16, 16, 16);
- this.replaceBlocksForBiome(x, z, blockStorage, metaStorage, this.biomesForGeneration);
- this.onChunkProvider(x, z, blockStorage, metaStorage);
- Chunk chunk = new Chunk(this.worldObj, blockStorage, metaStorage, x, z);
- byte[] chunkBiomes = chunk.getBiomeArray();
- if (this.worldGenerators == null) {
- this.worldGenerators = this.getWorldGenerators();
- }
-
- Iterator<MapGenBaseMeta> i$ = this.worldGenerators.iterator();
-
- while (i$.hasNext()) {
- MapGenBaseMeta generator = (MapGenBaseMeta) i$.next();
- generator.generate(this, this.worldObj, x, z, blockStorage, metaStorage);
- }
-
- for (int i = 0; i < chunkBiomes.length; ++i) {
- chunkBiomes[i] = (byte) this.biomesForGeneration[i].biomeID;
- }
-
- chunk.generateSkylightMap();
- return chunk;
- }
-
- public void generateTerrain(int chunkX, int chunkZ, Block[] blockStorage, byte[] metaStorage) {
- int seaLevel = this.getWaterLevel();
- metaStorage = new byte[65536];
- this.biomesForGeneration = this.worldObj.getWorldChunkManager().loadBlockGeneratorData(this.biomesForGeneration,
- chunkX * 4 - 2, chunkZ * 4 - 2, 10, 10);
- this.makeLandPerBiome2(chunkX * 4, 0, chunkZ * 4);
-
- for (int k = 0; k < 4; ++k) {
- int l = k * 5;
- int i1 = (k + 1) * 5;
-
- for (int j1 = 0; j1 < 4; ++j1) {
- int k1 = (l + j1) * 33;
- int l1 = (l + j1 + 1) * 33;
- int i2 = (i1 + j1) * 33;
- int j2 = (i1 + j1 + 1) * 33;
-
- for (int k2 = 0; k2 < 32; ++k2) {
- double d0 = 0.125D;
- double d1 = this.terrainCalcs[k1 + k2];
- double d2 = this.terrainCalcs[l1 + k2];
- double d3 = this.terrainCalcs[i2 + k2];
- double d4 = this.terrainCalcs[j2 + k2];
- double d5 = (this.terrainCalcs[k1 + k2 + 1] - d1) * d0;
- double d6 = (this.terrainCalcs[l1 + k2 + 1] - d2) * d0;
- double d7 = (this.terrainCalcs[i2 + k2 + 1] - d3) * d0;
- double d8 = (this.terrainCalcs[j2 + k2 + 1] - d4) * d0;
-
- for (int l2 = 0; l2 < 8; ++l2) {
- double d9 = 0.25D;
- double d10 = d1;
- double d11 = d2;
- double d12 = (d3 - d1) * d9;
- double d13 = (d4 - d2) * d9;
-
- for (int i3 = 0; i3 < 4; ++i3) {
- int j3 = i3 + k * 4 << 12 | 0 + j1 * 4 << 8 | k2 * 8 + l2;
- short short1 = 256;
- j3 -= short1;
- double d14 = 0.25D;
- double d16 = (d11 - d10) * d14;
- double d15 = d10 - d16;
-
- for (int k3 = 0; k3 < 4; ++k3) {
- if ((d15 += d16) > 0.0D) {
- blockStorage[j3 += short1] = this.getStoneBlock().getBlock();
- } else if (k2 * 8 + l2 < seaLevel && this.canGenerateWaterBlock()) {
- blockStorage[j3 += short1] = this.getWaterBlock().getBlock();
- } else {
- blockStorage[j3 += short1] = null;
- }
- }
-
- d10 += d12;
- d11 += d13;
- }
-
- d1 += d5;
- d2 += d6;
- d3 += d7;
- d4 += d8;
- }
- }
- }
- }
-
- }
-
- private void makeLandPerBiome2(int x, int zero, int z) {
- this.field_147426_g = this.noiseGen6.generateNoiseOctaves(this.field_147426_g, x, z, 5, 5, 200.0D, 200.0D,
- 0.5D);
- this.field_147427_d = this.field_147429_l.generateNoiseOctaves(this.field_147427_d, x, zero, z, 5, 33, 5,
- 8.555150000000001D, 4.277575000000001D, 8.555150000000001D);
- this.field_147428_e = this.field_147431_j.generateNoiseOctaves(this.field_147428_e, x, zero, z, 5, 33, 5,
- 684.412D, 684.412D, 684.412D);
- this.field_147425_f = this.field_147432_k.generateNoiseOctaves(this.field_147425_f, x, zero, z, 5, 33, 5,
- 684.412D, 684.412D, 684.412D);
- int terrainIndex = 0;
- int noiseIndex = 0;
-
- for (int ax = 0; ax < 5; ++ax) {
- for (int az = 0; az < 5; ++az) {
- float totalVariation = 0.0F;
- float totalHeight = 0.0F;
- float totalFactor = 0.0F;
- byte two = 2;
- BiomeGenBase biomegenbase = this.biomesForGeneration[ax + 2 + (az + 2) * 10];
-
- for (int ox = -two; ox <= two; ++ox) {
- for (int oz = -two; oz <= two; ++oz) {
- BiomeGenBase biomegenbase1 = this.biomesForGeneration[ax + ox + 2 + (az + oz + 2) * 10];
- float rootHeight = biomegenbase1.rootHeight;
- float heightVariation = biomegenbase1.heightVariation;
- float heightFactor = this.parabolicField[ox + 2 + (oz + 2) * 5] / (rootHeight + 2.0F);
- if (biomegenbase1.rootHeight > biomegenbase.rootHeight) {
- heightFactor /= 2.0F;
- }
-
- totalVariation += heightVariation * heightFactor;
- totalHeight += rootHeight * heightFactor;
- totalFactor += heightFactor;
- }
- }
-
- totalVariation /= totalFactor;
- totalHeight /= totalFactor;
- totalVariation = totalVariation * 0.9F + 0.1F;
- totalHeight = (totalHeight * 4.0F - 1.0F) / 8.0F;
- double terrainNoise = this.field_147426_g[noiseIndex] / 8000.0D;
- if (terrainNoise < 0.0D) {
- terrainNoise = -terrainNoise * 0.3D;
- }
-
- terrainNoise = terrainNoise * 3.0D - 2.0D;
- if (terrainNoise < 0.0D) {
- terrainNoise /= 2.0D;
- if (terrainNoise < -1.0D) {
- terrainNoise = -1.0D;
- }
-
- terrainNoise /= 1.4D;
- terrainNoise /= 2.0D;
- } else {
- if (terrainNoise > 1.0D) {
- terrainNoise = 1.0D;
- }
-
- terrainNoise /= 8.0D;
- }
-
- ++noiseIndex;
- double heightCalc = (double) totalHeight;
- double variationCalc = (double) totalVariation * this.getHeightModifier() / 10.0D;
- heightCalc += terrainNoise * 0.2D;
- heightCalc = heightCalc * 8.5D / 8.0D;
- double d5 = 8.5D + heightCalc * 4.0D;
-
- for (int ay = 0; ay < 33; ++ay) {
- double d6 = ((double) ay - d5) * 12.0D * 128.0D / 256.0D / variationCalc;
- if (d6 < 0.0D) {
- d6 *= 4.0D;
- }
-
- double d7 = this.field_147428_e[terrainIndex] / 512.0D;
- double d8 = this.field_147425_f[terrainIndex] / 512.0D;
- double d9 = (this.field_147427_d[terrainIndex] / 10.0D + 1.0D) / 2.0D;
- double terrainCalc = MathHelper.denormalizeClamp(d7, d8, d9) - d6;
- if (ay > 29) {
- double d11 = (double) ((float) (ay - 29) / 3.0F);
- terrainCalc = terrainCalc * (1.0D - d11) + -10.0D * d11;
- }
-
- this.terrainCalcs[terrainIndex] = terrainCalc;
- ++terrainIndex;
- }
- }
- }
-
- }
-
- public void replaceBlocksForBiome(int par1, int par2, Block[] arrayOfIDs, byte[] arrayOfMeta,
- BiomeGenBase[] par4ArrayOfBiomeGenBase) {
- this.noiseGen8.setFrequency(0.0625F);
-
- for (int var8 = 0; var8 < 16; ++var8) {
- for (int var9 = 0; var9 < 16; ++var9) {
- GalacticBiomeGenBase biomegenbase = (GalacticBiomeGenBase) par4ArrayOfBiomeGenBase[var8 + var9 * 16];
- int var12 = (int) ((double) this.noiseGen8.getNoise((float) (par1 * 16 + var8),
- (float) (par2 * 16 + var9)) / 3.0D + 3.0D + this.rand.nextDouble() * 0.25D);
- int var13 = -1;
- Block var14 = this.enableBiomeGenBaseBlock() ? biomegenbase.topBlock : this.getGrassBlock().getBlock();
- byte var14m = this.enableBiomeGenBaseBlock()
- ? biomegenbase.topMeta
- : this.getGrassBlock().getMetadata();
- Block var15 = this.enableBiomeGenBaseBlock()
- ? biomegenbase.fillerBlock
- : this.getDirtBlock().getBlock();
- byte var15m = this.enableBiomeGenBaseBlock()
- ? biomegenbase.fillerMeta
- : this.getDirtBlock().getMetadata();
-
- for (int var16 = 255; var16 >= 0; --var16) {
- int index = this.getIndex(var8, var16, var9);
- if (var16 <= 0 + this.rand.nextInt(5)) {
- arrayOfIDs[index] = Blocks.bedrock;
- }
-
- if (var16 != 5 && var16 != 6 + this.rand.nextInt(3)) {
- Block var18 = arrayOfIDs[index];
- if (Blocks.air == var18) {
- var13 = -1;
- } else if (var18 == this.getStoneBlock().getBlock() && !this.enableBiomeGenBaseBlock()) {
- arrayOfMeta[index] = this.getStoneBlock().getMetadata();
- if (var13 == -1) {
- if (var12 <= 0) {
- var14 = Blocks.air;
- var14m = 0;
- var15 = this.getStoneBlock().getBlock();
- var15m = this.getStoneBlock().getMetadata();
- } else if (var16 >= 36 && var16 <= 21) {
- if (this.enableBiomeGenBaseBlock()) {
- var14 = biomegenbase.topBlock;
- var14m = biomegenbase.topMeta;
- var14 = biomegenbase.fillerBlock;
- var14m = biomegenbase.fillerMeta;
- } else {
- var14 = this.getGrassBlock().getBlock();
- var14m = this.getGrassBlock().getMetadata();
- var14 = this.getDirtBlock().getBlock();
- var14m = this.getDirtBlock().getMetadata();
- }
- }
-
- var13 = var12;
- if (var16 >= 19) {
- arrayOfIDs[index] = var14;
- arrayOfMeta[index] = var14m;
- } else {
- arrayOfIDs[index] = var15;
- arrayOfMeta[index] = var15m;
- }
- } else if (var13 > 0) {
- --var13;
- arrayOfIDs[index] = var15;
- arrayOfMeta[index] = var15m;
- }
- } else if (var18 == biomegenbase.stoneBlock) {
- arrayOfMeta[index] = biomegenbase.stoneMeta;
- if (var13 == -1) {
- if (var12 <= 0) {
- var14 = Blocks.air;
- var14m = 0;
- if (this.enableBiomeGenBaseBlock()) {
- var15 = biomegenbase.stoneBlock;
- var15m = biomegenbase.stoneMeta;
- } else {
- var15 = this.getStoneBlock().getBlock();
- var15m = this.getStoneBlock().getMetadata();
- }
- } else if (var16 >= 36 && var16 <= 21) {
- if (this.enableBiomeGenBaseBlock()) {
- var14 = biomegenbase.topBlock;
- var14m = biomegenbase.topMeta;
- var14 = biomegenbase.fillerBlock;
- var14m = biomegenbase.fillerMeta;
- } else {
- var14 = this.getGrassBlock().getBlock();
- var14m = this.getGrassBlock().getMetadata();
- var14 = this.getDirtBlock().getBlock();
- var14m = this.getDirtBlock().getMetadata();
- }
- }
-
- var13 = var12;
- if (var16 >= 19) {
- arrayOfIDs[index] = var14;
- arrayOfMeta[index] = var14m;
- } else {
- arrayOfIDs[index] = var15;
- arrayOfMeta[index] = var15m;
- }
- } else if (var13 > 0) {
- --var13;
- arrayOfIDs[index] = var15;
- arrayOfMeta[index] = var15m;
- }
- }
- } else {
- arrayOfIDs[index] = this.canGenerateIceBlock() ? Blocks.packed_ice : Blocks.bedrock;
- }
- }
- }
- }
-
- }
-
- private int getIndex(int x, int y, int z) {
- return (x * 16 + z) * 256 + y;
- }
-
- public Chunk loadChunk(int x, int z) {
- return this.provideChunk(x, z);
- }
-
- public boolean chunkExists(int x, int z) {
- return true;
- }
-
- public void populate(IChunkProvider chunk, int x, int z) {
- BlockFalling.fallInstantly = true;
- int var4 = x * 16;
- int var5 = z * 16;
- BiomeGenBase biomeGen = this.worldObj.getBiomeGenForCoords(var4 + 16, var5 + 16);
- this.worldObj.getBiomeGenForCoords(var4 + 16, var5 + 16);
- this.rand.setSeed(this.worldObj.getSeed());
- long var7 = this.rand.nextLong() / 2L * 2L + 1L;
- long var9 = this.rand.nextLong() / 2L * 2L + 1L;
- this.rand.setSeed((long) x * var7 + (long) z * var9 ^ this.worldObj.getSeed());
- biomeGen.decorate(this.worldObj, this.rand, var4, var5);
- this.decoratePlanet(this.worldObj, this.rand, var4, var5);
- SpawnerAnimals.performWorldGenSpawning(this.worldObj, biomeGen, var4 + 8, var5 + 8, 16, 16, this.rand);
- this.onPopulate(chunk, x, z);
- BlockFalling.fallInstantly = false;
- }
-
- public void decoratePlanet(World world, Random rand, int x, int z) {
- this.getBiomeGenerator().decorate(world, rand, x, z);
- }
-
- public boolean saveChunks(boolean flag, IProgressUpdate progress) {
- return true;
- }
-
- public boolean canSave() {
- return true;
- }
-
- public String makeString() {
- return "RandomLevelSource";
- }
-
- public List<SpawnListEntry> getPossibleCreatures(EnumCreatureType par1EnumCreatureType, int i, int j, int k) {
- ArrayList<SpawnListEntry> watercreatures;
- SpawnListEntry[] arr$;
- int len$;
- int i$;
- SpawnListEntry watercreature;
- if (par1EnumCreatureType == EnumCreatureType.monster) {
- watercreatures = new ArrayList<SpawnListEntry>();
- arr$ = this.getMonsters();
- len$ = arr$.length;
-
- for (i$ = 0; i$ < len$; ++i$) {
- watercreature = arr$[i$];
- watercreatures.add(watercreature);
- }
-
- return watercreatures;
- } else if (par1EnumCreatureType == EnumCreatureType.creature) {
- watercreatures = new ArrayList<SpawnListEntry>();
- arr$ = this.getCreatures();
- len$ = arr$.length;
-
- for (i$ = 0; i$ < len$; ++i$) {
- watercreature = arr$[i$];
- watercreatures.add(watercreature);
- }
-
- return watercreatures;
- } else if (par1EnumCreatureType != EnumCreatureType.waterCreature) {
- return null;
- } else {
- watercreatures = new ArrayList<SpawnListEntry>();
- arr$ = this.getWaterCreatures();
- len$ = arr$.length;
-
- for (i$ = 0; i$ < len$; ++i$) {
- watercreature = arr$[i$];
- watercreatures.add(watercreature);
- }
-
- return watercreatures;
- }
- }
-
- public int getLoadedChunkCount() {
- return 0;
- }
-
- public void recreateStructures(int x, int z) {
- }
-
- public boolean unloadQueuedChunks() {
- return false;
- }
-
- public void saveExtraData() {
- }
-
- public ChunkPosition func_147416_a(World world, String string, int x, int y, int z) {
- return null;
- }
-
- protected abstract BiomeDecoratorSpace getBiomeGenerator();
-
- protected abstract BiomeGenBase[] getBiomesForGeneration();
-
- public abstract void onChunkProvider(int var1, int var2, Block[] var3, byte[] var4);
-
- public abstract void onPopulate(IChunkProvider var1, int var2, int var3);
-
- protected abstract SpawnListEntry[] getMonsters();
-
- protected abstract SpawnListEntry[] getCreatures();
-
- protected abstract SpawnListEntry[] getWaterCreatures();
-
- protected abstract List<MapGenBaseMeta> getWorldGenerators();
-
- public abstract double getHeightModifier();
-
- public abstract int getWaterLevel();
-
- public abstract boolean canGenerateWaterBlock();
-
- public abstract boolean canGenerateIceBlock();
-
- protected abstract BlockMetaPair getWaterBlock();
-
- protected abstract BlockMetaPair getGrassBlock();
-
- protected abstract BlockMetaPair getDirtBlock();
-
- protected abstract BlockMetaPair getStoneBlock();
-
- protected abstract boolean enableBiomeGenBaseBlock();
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/GalacticBiomeGenBase.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/GalacticBiomeGenBase.java
deleted file mode 100644
index 9ebb7d3908..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/GalacticBiomeGenBase.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.core.world.gen;
-
-import gtPlusPlus.xmod.galacticraft.system.core.world.gen.biome.BiomeGenGalaxy;
-import net.minecraft.block.Block;
-import net.minecraft.world.biome.BiomeGenBase;
-
-public abstract class GalacticBiomeGenBase extends BiomeGenBase {
-
- public static BiomeGenBase mGalaxy;
- public Block stoneBlock;
- public byte topMeta;
- public byte fillerMeta;
- public byte stoneMeta;
-
- public int mBiomeID;
-
- public GalacticBiomeGenBase(int id) {
- super(id);
- this.spawnableMonsterList.clear();
- this.spawnableWaterCreatureList.clear();
- this.spawnableCreatureList.clear();
- this.spawnableCaveCreatureList.clear();
- this.rainfall = 0.0F;
- this.setColor(-16744448);
- mBiomeID = id;
- }
-
- public GalacticBiomeGenBase setColor(int var1) {
- return (GalacticBiomeGenBase) super.setColor(var1);
- }
-
- public float getSpawningChance() {
- return 0.1F;
- }
-
- static {
- mGalaxy = (new BiomeGenGalaxy(177)).setBiomeName("Galaxy");
- }
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/GalacticMapGenCavesBase.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/GalacticMapGenCavesBase.java
deleted file mode 100644
index 713682b921..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/GalacticMapGenCavesBase.java
+++ /dev/null
@@ -1,191 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.core.world.gen;
-
-import galaxyspace.SolarSystem.core.registers.blocks.GSBlocks;
-import java.util.Random;
-import micdoodle8.mods.galacticraft.api.prefab.world.gen.MapGenBaseMeta;
-import net.minecraft.block.Block;
-import net.minecraft.init.Blocks;
-import net.minecraft.util.MathHelper;
-import net.minecraft.world.World;
-
-public class GalacticMapGenCavesBase extends MapGenBaseMeta {
- public static final int BREAK_THROUGH_CHANCE = 25;
-
- protected void generateLargeCaveNode(long par1, int par3, int par4, Block[] blockIdArray, byte[] metaArray,
- double par6, double par8, double par10) {
- this.generateCaveNode(par1, par3, par4, blockIdArray, metaArray, par6, par8, par10,
- 1.0F + this.rand.nextFloat() * 6.0F, 0.0F, 0.0F, -1, -1, 0.5D);
- }
-
- protected void generateCaveNode(long par1, int par3, int par4, Block[] blockIdArray, byte[] metaArray, double par6,
- double par8, double par10, float par12, float par13, float par14, int par15, int par16, double par17) {
- double d4 = (double) (par3 * 16 + 8);
- double d5 = (double) (par4 * 16 + 8);
- float f3 = 0.0F;
- float f4 = 0.0F;
- Random random = new Random(par1);
- if (par16 <= 0) {
- int j1 = this.range * 16 - 16;
- par16 = j1 - random.nextInt(j1 / 4);
- }
-
- boolean flag = false;
- if (par15 == -1) {
- par15 = par16 / 2;
- flag = true;
- }
-
- int k1 = random.nextInt(par16 / 2) + par16 / 4;
-
- for (boolean flag1 = random.nextInt(6) == 0; par15 < par16; ++par15) {
- double d6 = 1.5D + (double) (MathHelper.sin((float) par15 * 3.1415927F / (float) par16) * par12 * 1.0F);
- double d7 = d6 * par17;
- float f5 = MathHelper.cos(par14);
- float f6 = MathHelper.sin(par14);
- par6 += (double) (MathHelper.cos(par13) * f5);
- par8 += (double) f6;
- par10 += (double) (MathHelper.sin(par13) * f5);
- if (flag1) {
- par14 *= 0.92F;
- } else {
- par14 *= 0.7F;
- }
-
- par14 += f4 * 0.1F;
- par13 += f3 * 0.1F;
- f4 *= 0.9F;
- f3 *= 0.75F;
- f4 += (random.nextFloat() - random.nextFloat()) * random.nextFloat() * 2.0F;
- f3 += (random.nextFloat() - random.nextFloat()) * random.nextFloat() * 4.0F;
- if (!flag && par15 == k1 && par12 > 1.0F && par16 > 0) {
- this.generateCaveNode(random.nextLong(), par3, par4, blockIdArray, metaArray, par6, par8, par10,
- random.nextFloat() * 0.5F + 0.5F, par13 - 1.5707964F, par14 / 3.0F, par15, par16, 1.0D);
- this.generateCaveNode(random.nextLong(), par3, par4, blockIdArray, metaArray, par6, par8, par10,
- random.nextFloat() * 0.5F + 0.5F, par13 + 1.5707964F, par14 / 3.0F, par15, par16, 1.0D);
- return;
- }
-
- if (flag || random.nextInt(4) != 0) {
- double d8 = par6 - d4;
- double d9 = par10 - d5;
- double d10 = (double) (par16 - par15);
- double d11 = (double) (par12 + 2.0F + 16.0F);
- if (d8 * d8 + d9 * d9 - d10 * d10 > d11 * d11) {
- return;
- }
-
- if (par6 >= d4 - 16.0D - d6 * 2.0D && par10 >= d5 - 16.0D - d6 * 2.0D && par6 <= d4 + 16.0D + d6 * 2.0D
- && par10 <= d5 + 16.0D + d6 * 2.0D) {
- int l1 = MathHelper.floor_double(par6 - d6) - par3 * 16 - 1;
- int i2 = MathHelper.floor_double(par6 + d6) - par3 * 16 + 1;
- int j2 = MathHelper.floor_double(par8 - d7) - 1;
- int k2 = MathHelper.floor_double(par8 + d7) + 1;
- int l2 = MathHelper.floor_double(par10 - d6) - par4 * 16 - 1;
- int i3 = MathHelper.floor_double(par10 + d6) - par4 * 16 + 1;
- if (l1 < 0) {
- l1 = 0;
- }
-
- if (i2 > 16) {
- i2 = 16;
- }
-
- if (j2 < 1) {
- j2 = 1;
- }
-
- if (k2 > 120) {
- k2 = 120;
- }
-
- if (l2 < 0) {
- l2 = 0;
- }
-
- if (i3 > 16) {
- i3 = 16;
- }
-
- boolean flag2 = false;
-
- int localY;
- for (int j3 = l1; j3 < i2; ++j3) {
- for (localY = l2; localY < i3; ++localY) {
- for (int i4 = k2 + 1; i4 >= j2 - 1; --i4) {
- if (i4 >= 0 && i4 < 128 && i4 != j2 - 1 && j3 != l1 && j3 != i2 - 1 && localY != l2
- && localY != i3 - 1) {
- i4 = j2;
- }
- }
- }
- }
-
- for (localY = j2; localY < k2; ++localY) {
- double yfactor = ((double) localY + 0.5D - par8) / d7;
- double yfactorSq = yfactor * yfactor;
-
- for (int localX = l1; localX < i2; ++localX) {
- double zfactor = ((double) (localX + par3 * 16) + 0.5D - par6) / d6;
- double zfactorSq = zfactor * zfactor;
-
- for (int localZ = l2; localZ < i3; ++localZ) {
- double xfactor = ((double) (localZ + par4 * 16) + 0.5D - par10) / d6;
- double xfactorSq = xfactor * xfactor;
- if (xfactorSq + zfactorSq < 1.0D) {
- int coords = (localX * 16 + localZ) * 256 + localY;
- if (yfactor > -0.7D && xfactorSq + yfactorSq + zfactorSq < 1.0D) {
- if (blockIdArray[coords] == GSBlocks.HaumeaBlocks && metaArray[coords] == 0
- && random.nextInt(25) == 0) {
- blockIdArray[coords] = Blocks.air;
- } else if (blockIdArray[coords] == GSBlocks.HaumeaBlocks
- && metaArray[coords] == 0) {
- blockIdArray[coords] = Blocks.air;
- }
- }
- }
- }
- }
- }
-
- if (flag) {
- break;
- }
- }
- }
- }
-
- }
-
- protected void recursiveGenerate(World par1World, int par2, int par3, int par4, int par5, Block[] blockIdArray,
- byte[] metaArray) {
- int var7 = this.rand.nextInt(this.rand.nextInt(this.rand.nextInt(40) + 1) + 1);
- if (this.rand.nextInt(15) != 0) {
- var7 = 0;
- }
-
- for (int var8 = 0; var8 < var7; ++var8) {
- double var9 = (double) (par2 * 16 + this.rand.nextInt(16));
- double var11 = (double) this.rand.nextInt(this.rand.nextInt(120) + 8);
- double var13 = (double) (par3 * 16 + this.rand.nextInt(16));
- int var15 = 1;
- if (this.rand.nextInt(4) == 0) {
- this.generateLargeCaveNode(this.rand.nextLong(), par4, par5, blockIdArray, metaArray, var9, var11,
- var13);
- var15 += this.rand.nextInt(4);
- }
-
- for (int var16 = 0; var16 < var15; ++var16) {
- float var17 = this.rand.nextFloat() * 3.1415927F * 2.0F;
- float var18 = (this.rand.nextFloat() - 0.5F) * 2.0F / 8.0F;
- float var19 = this.rand.nextFloat() * 2.0F + this.rand.nextFloat();
- if (this.rand.nextInt(10) == 0) {
- var19 *= this.rand.nextFloat() * this.rand.nextFloat() * 3.0F + 1.0F;
- }
-
- this.generateCaveNode(this.rand.nextLong(), par4, par5, blockIdArray, metaArray, var9, var11, var13,
- var19, var17, var18, 0, 0, 1.0D);
- }
- }
-
- }
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/biome/BiomeGenGalaxy.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/biome/BiomeGenGalaxy.java
deleted file mode 100644
index 56d34831b8..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/core/world/gen/biome/BiomeGenGalaxy.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.core.world.gen.biome;
-
-import gtPlusPlus.xmod.galacticraft.system.core.world.gen.GalacticBiomeGenBase;
-import micdoodle8.mods.galacticraft.core.util.ConfigManagerCore;
-import net.minecraftforge.common.BiomeDictionary;
-import net.minecraftforge.common.BiomeDictionary.Type;
-
-public class BiomeGenGalaxy extends GalacticBiomeGenBase {
- public BiomeGenGalaxy(int var1) {
- super(var1);
- this.spawnableCaveCreatureList.clear();
- this.spawnableCreatureList.clear();
- this.spawnableMonsterList.clear();
- this.spawnableWaterCreatureList.clear();
- if (!ConfigManagerCore.disableBiomeTypeRegistrations) {
- BiomeDictionary.registerBiomeType(this, new Type[]{Type.COLD, Type.DRY, Type.DEAD, Type.SPOOKY});
- }
-
- }
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/SystemHD10180.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/SystemHD10180.java
deleted file mode 100644
index a6f51255db..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/SystemHD10180.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.hd10180;
-
-import gtPlusPlus.core.lib.CORE;
-import gtPlusPlus.xmod.galacticraft.system.core.dim.BasicChunkProviderGalactic;
-import gtPlusPlus.xmod.galacticraft.system.core.space.BaseSolarSystem;
-import gtPlusPlus.xmod.galacticraft.system.hd10180.planets.b.blocks.BlockRegistrationHD10180B;
-import gtPlusPlus.xmod.galacticraft.system.hd10180.planets.b.dim.WorldProviderHD10180B;
-import gtPlusPlus.xmod.galacticraft.system.hd10180.planets.c.blocks.BlockRegistrationHD10180C;
-import gtPlusPlus.xmod.galacticraft.system.hd10180.planets.c.dim.WorldProviderHD10180C;
-import gtPlusPlus.xmod.galacticraft.system.hd10180.planets.d.blocks.BlockRegistrationHD10180D;
-import gtPlusPlus.xmod.galacticraft.system.hd10180.planets.d.dim.WorldProviderHD10180D;
-import gtPlusPlus.xmod.galacticraft.system.objects.BiomeSettings;
-import gtPlusPlus.xmod.galacticraft.system.objects.DimensionSettings;
-import gtPlusPlus.xmod.galacticraft.system.objects.PlanetGenerator;
-import gtPlusPlus.xmod.galacticraft.system.objects.WorldProviderSettings;
-import micdoodle8.mods.galacticraft.api.galaxies.SolarSystem;
-import micdoodle8.mods.galacticraft.api.galaxies.Star;
-import micdoodle8.mods.galacticraft.api.vector.Vector3;
-
-public class SystemHD10180 extends BaseSolarSystem {
-
- public SystemHD10180() {
- super("HD10180");
- }
-
- public void preInit() {
- //Init Blocks
- BlockRegistrationHD10180B.initialize();
- }
-
- @Override
- public void initSolarSystem() {
- //Lets pick a nice place
- SolarSystem aSystemHD10180 = createSolarSystem(mSystemName, "milkyWay", new Vector3(-1.2D, 0.0D, 0.0D));
- this.registerSolarSystem(aSystemHD10180);
- //turn the lights on
- Star aMainStar = this.createStar(mSystemName+"-A",3);
- this.setMainStarForSolarSystem(aMainStar);
-
- //Planet B
- PlanetGenerator B = this.createPlanet(mSystemName+"-B", 5, new float[] {0.2f, 0.2f, 0.2f}, CORE.PI/2, 0.3f, 0.3f, 0.24096386F, new BlockRegistrationHD10180B());
- DimensionSettings Planet_B_Settings = new DimensionSettings(B, BasicChunkProviderGalactic.class, 5, false, 1, false, 240f, 0.1f, 0.2f, false, 12000L);
- BiomeSettings Planet_B_Biome = new BiomeSettings(mSystemName+"-B", 255, 0.1f, 0.2f);
- this.registerPlanet(new WorldProviderHD10180B(new WorldProviderSettings(Planet_B_Settings, Planet_B_Biome)).getDim());
-
- //Planet C
- PlanetGenerator C = this.createPlanet(mSystemName+"-C", 4, new float[] {0.2f, 0.2f, 0.8f}, CORE.PI/2+0.45f, 0.5f, 0.5f, 2.861994F, new BlockRegistrationHD10180C());
- DimensionSettings Planet_C_Settings = new DimensionSettings(C, BasicChunkProviderGalactic.class, 4, true, 1, false, 120f, 2f, 2f, false, 24000L);
- BiomeSettings Planet_C_Biome = new BiomeSettings(mSystemName+"-C", 255, 0.1f, 0.5f);
- this.registerPlanet(new WorldProviderHD10180C(new WorldProviderSettings(Planet_C_Settings, Planet_C_Biome)).getDim());
-
- //Planet D
- PlanetGenerator D = this.createPlanet(mSystemName+"-D", 3, new float[] {0.2f, 0.2f, 0.2f}, CORE.PI-0.55f, 1.2f, 1.2f, 16.861994F, new BlockRegistrationHD10180D());
- DimensionSettings Planet_D_Settings = new DimensionSettings(D, BasicChunkProviderGalactic.class, 3, true, 1, false, 240f, 1f, 0.0f, false, 48000L);
- BiomeSettings Planet_D_Biome = new BiomeSettings(mSystemName+"-D", 255, 0.2f, 0.4f);
- this.registerPlanet(new WorldProviderHD10180D(new WorldProviderSettings(Planet_D_Settings, Planet_D_Biome)).getDim());
- }
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/b/blocks/BlockRegistrationHD10180B.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/b/blocks/BlockRegistrationHD10180B.java
deleted file mode 100644
index d79b5f47ce..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/b/blocks/BlockRegistrationHD10180B.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.hd10180.planets.b.blocks;
-
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-import gtPlusPlus.api.objects.data.AutoMap;
-import gtPlusPlus.xmod.galacticraft.system.objects.IPlanetBlockRegister;
-import net.minecraft.block.Block;
-import net.minecraft.init.Blocks;
-
-public class BlockRegistrationHD10180B implements IPlanetBlockRegister {
-
- private Map<Integer, Block> mBlocks = new LinkedHashMap<Integer, Block>();
- private static AutoMap<Block> mBlocksToRegister = new AutoMap<Block>();
-
- public static void initialize() {
- //mBlocksToRegister.put(new TCetiEBlocks());
- //mBlocksToRegister.put(new TCetiEBlockDandelions());
- }
-
- @Override
- public Map<Integer, Block> getBlocks() {
- return mBlocks;
- }
-
- @Override
- public Block getTopLayer() {
- return mBlocks.get(0);
- }
-
- @Override
- public Block getSoil() {
- return mBlocks.get(1);
- }
-
- @Override
- public Block getSoil2() {
- return mBlocks.get(2);
- }
-
- @Override
- public Block getStone() {
- return mBlocks.get(3);
- }
-
- @Override
- public Block getWaterBlock() {
- return mBlocks.get(4);
- }
-
- @Override
- public void register() {
- //Register Blocks, Add to List
- mBlocks.put(0, Blocks.grass);
- mBlocks.put(1, Blocks.dirt);
- mBlocks.put(2, Blocks.gravel);
- mBlocks.put(3, Blocks.stone);
- mBlocks.put(4, Blocks.lava);
-
- }
-
-}
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/b/dim/WorldProviderHD10180B.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/b/dim/WorldProviderHD10180B.java
deleted file mode 100644
index 2566ef6280..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/b/dim/WorldProviderHD10180B.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.hd10180.planets.b.dim;
-
-import gtPlusPlus.xmod.galacticraft.system.core.dim.BaseWorldProviderGalactic;
-import gtPlusPlus.xmod.galacticraft.system.objects.WorldProviderSettings;
-
-public class WorldProviderHD10180B extends BaseWorldProviderGalactic {
-
- public WorldProviderHD10180B(WorldProviderSettings b) {
- super(b);
- }
-
-
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/c/blocks/BlockRegistrationHD10180C.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/c/blocks/BlockRegistrationHD10180C.java
deleted file mode 100644
index 8cf401be40..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/c/blocks/BlockRegistrationHD10180C.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.hd10180.planets.c.blocks;
-
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-import gtPlusPlus.api.objects.data.AutoMap;
-import gtPlusPlus.xmod.galacticraft.system.objects.IPlanetBlockRegister;
-import net.minecraft.block.Block;
-import net.minecraft.init.Blocks;
-
-public class BlockRegistrationHD10180C implements IPlanetBlockRegister {
-
- private Map<Integer, Block> mBlocks = new LinkedHashMap<Integer, Block>();
- private static AutoMap<Block> mBlocksToRegister = new AutoMap<Block>();
-
- public static void initialize() {
- //mBlocksToRegister.put(new TCetiEBlocks());
- //mBlocksToRegister.put(new TCetiEBlockDandelions());
- }
-
- @Override
- public Map<Integer, Block> getBlocks() {
- return mBlocks;
- }
-
- @Override
- public Block getTopLayer() {
- return mBlocks.get(0);
- }
-
- @Override
- public Block getSoil() {
- return mBlocks.get(1);
- }
-
- @Override
- public Block getSoil2() {
- return mBlocks.get(2);
- }
-
- @Override
- public Block getStone() {
- return mBlocks.get(3);
- }
-
- @Override
- public Block getWaterBlock() {
- return mBlocks.get(4);
- }
-
- @Override
- public void register() {
- //Register Blocks, Add to List
- mBlocks.put(0, Blocks.grass);
- mBlocks.put(1, Blocks.dirt);
- mBlocks.put(2, Blocks.gravel);
- mBlocks.put(3, Blocks.stone);
- mBlocks.put(4, Blocks.lava);
-
- }
-
-}
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/c/dim/WorldProviderHD10180C.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/c/dim/WorldProviderHD10180C.java
deleted file mode 100644
index 05d2a7155d..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/c/dim/WorldProviderHD10180C.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.hd10180.planets.c.dim;
-
-import gtPlusPlus.xmod.galacticraft.system.core.dim.BaseWorldProviderGalactic;
-import gtPlusPlus.xmod.galacticraft.system.objects.WorldProviderSettings;
-
-public class WorldProviderHD10180C extends BaseWorldProviderGalactic {
-
- public WorldProviderHD10180C(WorldProviderSettings b) {
- super(b);
- }
-
-
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/d/blocks/BlockRegistrationHD10180D.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/d/blocks/BlockRegistrationHD10180D.java
deleted file mode 100644
index e577d2bf6f..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/d/blocks/BlockRegistrationHD10180D.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.hd10180.planets.d.blocks;
-
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-import gtPlusPlus.api.objects.data.AutoMap;
-import gtPlusPlus.xmod.galacticraft.system.objects.IPlanetBlockRegister;
-import net.minecraft.block.Block;
-import net.minecraft.init.Blocks;
-
-public class BlockRegistrationHD10180D implements IPlanetBlockRegister {
-
- private Map<Integer, Block> mBlocks = new LinkedHashMap<Integer, Block>();
- private static AutoMap<Block> mBlocksToRegister = new AutoMap<Block>();
-
- public static void initialize() {
- //mBlocksToRegister.put(new TCetiEBlocks());
- //mBlocksToRegister.put(new TCetiEBlockDandelions());
- }
-
- @Override
- public Map<Integer, Block> getBlocks() {
- return mBlocks;
- }
-
- @Override
- public Block getTopLayer() {
- return mBlocks.get(0);
- }
-
- @Override
- public Block getSoil() {
- return mBlocks.get(1);
- }
-
- @Override
- public Block getSoil2() {
- return mBlocks.get(2);
- }
-
- @Override
- public Block getStone() {
- return mBlocks.get(3);
- }
-
- @Override
- public Block getWaterBlock() {
- return mBlocks.get(4);
- }
-
- @Override
- public void register() {
- //Register Blocks, Add to List
- mBlocks.put(0, Blocks.grass);
- mBlocks.put(1, Blocks.dirt);
- mBlocks.put(2, Blocks.gravel);
- mBlocks.put(3, Blocks.stone);
- mBlocks.put(4, Blocks.lava);
-
- }
-
-}
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/d/dim/WorldProviderHD10180D.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/d/dim/WorldProviderHD10180D.java
deleted file mode 100644
index 67bb43369d..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/hd10180/planets/d/dim/WorldProviderHD10180D.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.hd10180.planets.d.dim;
-
-import gtPlusPlus.xmod.galacticraft.system.core.dim.BaseWorldProviderGalactic;
-import gtPlusPlus.xmod.galacticraft.system.objects.WorldProviderSettings;
-
-public class WorldProviderHD10180D extends BaseWorldProviderGalactic {
-
- public WorldProviderHD10180D(WorldProviderSettings b) {
- super(b);
- }
-
-
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/BiomeSettings.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/BiomeSettings.java
deleted file mode 100644
index 33873f3f9e..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/BiomeSettings.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.objects;
-
-import net.minecraft.world.biome.BiomeGenBase.Height;
-
-public class BiomeSettings {
-
- private final String mBiomeName;
- private final int mBiomeID;
- private final Height mHeight;
-
- public BiomeSettings(String aName, int aID, float aHeightMin, float aHeightMax) {
- mBiomeName = aName;
- mBiomeID = aID;
- mHeight = new Height(aHeightMin, aHeightMax);
-
- }
-
- public synchronized final String getName() {
- return mBiomeName;
- }
-
- public synchronized final int getID() {
- return mBiomeID;
- }
-
- public synchronized final Height getHeight() {
- return mHeight;
- }
-}
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/DimensionSettings.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/DimensionSettings.java
deleted file mode 100644
index 5e444805e0..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/DimensionSettings.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.objects;
-
-import net.minecraft.world.chunk.IChunkProvider;
-
-public class DimensionSettings {
-
- private final int TierRequirement;
- private final PlanetGenerator Planet;
- private final boolean Atmosphere;
- private final int Pressure;
- private final boolean SolarRadiation;
- private final float CloudHeight;
- private final float Gravity;
- private final float MeteorFreq;
- private final boolean CanRainOrSnow;
- private final long DayLength;
- private final Class<? extends IChunkProvider> ChunkProvider;
-
- public DimensionSettings(PlanetGenerator aPlanet, Class<? extends IChunkProvider> aChunkProvider, int aTierRequirement, boolean aHasBreathableAtmo,
- int aPressure, boolean aSolarRadiation, float aCloudHeight, float aGravity, float aMeteorFreq, boolean aCanRainOrSnow, long aDayLength) {
- Planet = aPlanet;
- TierRequirement = aTierRequirement;
- Atmosphere = aHasBreathableAtmo;
- Pressure = aPressure;
- SolarRadiation = aSolarRadiation;
- CloudHeight = aCloudHeight;
- Gravity = aGravity;
- MeteorFreq = aMeteorFreq;
- CanRainOrSnow = aCanRainOrSnow;
- DayLength = aDayLength;
- ChunkProvider = aChunkProvider;
- }
-
- public synchronized final int getTierRequirement() {
- return TierRequirement;
- }
-
- public synchronized final PlanetGenerator getPlanet() {
- return Planet;
- }
-
- public synchronized final boolean hasAtmosphere() {
- return Atmosphere;
- }
-
- public synchronized final int getPressure() {
- return Pressure;
- }
-
- public synchronized final boolean hasSolarRadiation() {
- return SolarRadiation;
- }
-
- public synchronized final float getCloudHeight() {
- return CloudHeight;
- }
-
- public synchronized final float getGravity() {
- return Gravity;
- }
-
- public synchronized final float getMeteorFreq() {
- return MeteorFreq;
- }
-
- public synchronized final boolean hasRainOrSnow() {
- return CanRainOrSnow;
- }
-
- public synchronized final long getDayLength() {
- return DayLength;
- }
-
- public synchronized final Class<? extends IChunkProvider> getChunkProvider() {
- return ChunkProvider;
- }
-}
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/IPlanetBlockRegister.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/IPlanetBlockRegister.java
deleted file mode 100644
index 60199406a7..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/IPlanetBlockRegister.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.objects;
-
-import java.util.Map;
-
-import gtPlusPlus.api.objects.data.AutoMap;
-import net.minecraft.block.Block;
-
-public interface IPlanetBlockRegister extends Runnable {
-
- public abstract Map<Integer, Block> getBlocks();
-
- public abstract Block getWaterBlock();
-
- public abstract Block getTopLayer();
-
- public abstract Block getSoil();
-
- public abstract Block getSoil2();
-
- public abstract Block getStone();
-
- public abstract void register();
-
- @Override
- default void run() {
- register();
- }
-
-
-
-}
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/PlanetGenerator.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/PlanetGenerator.java
deleted file mode 100644
index fad40e5f41..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/PlanetGenerator.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.objects;
-
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-import gtPlusPlus.api.objects.data.Pair;
-import micdoodle8.mods.galacticraft.api.galaxies.Planet;
-import net.minecraft.block.Block;
-
-public class PlanetGenerator {
-
- private final Planet mPlanet;
- private final IPlanetBlockRegister mTask;
- private final Map<Integer, Pair<String, Block>> mPlanetBlocks;
- private final Thread mTaskThread;
-
- public static final Map<String, PlanetGenerator> mGlobalPlanetCache = new HashMap<String, PlanetGenerator>();
-
- public PlanetGenerator(Planet aPlanet, IPlanetBlockRegister aBlockRegistrationTask) {
- mPlanet = aPlanet;
- mTask = aBlockRegistrationTask;
- mPlanetBlocks = new LinkedHashMap<Integer, Pair<String, Block>>();
- for (int i=0;i<4;i++) {
- Block b = aBlockRegistrationTask.getBlocks().get(i);
- if (b != null)
- mPlanetBlocks.put(i, new Pair<String, Block>(b.getUnlocalizedName(), b));
- }
- if (mGlobalPlanetCache.get(mPlanet.getName().toUpperCase()) == null) {
- mGlobalPlanetCache.put(mPlanet.getName().toUpperCase(), this);
- }
- else {
- try {
- this.finalize();
- } catch (Throwable e) {
- }
- }
- mTaskThread = new Thread(aBlockRegistrationTask);
- mTaskThread.start();
- }
-
- public synchronized final Planet getPlanet() {
- return mPlanet;
- }
-
- public synchronized final IPlanetBlockRegister getTask() {
- return mTask;
- }
-
- public synchronized final Map<Integer, Pair<String, Block>> getPlanetBlocks() {
- return mPlanetBlocks;
- }
-
-}
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/WorldProviderSettings.java b/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/WorldProviderSettings.java
deleted file mode 100644
index e5ef3b43d9..0000000000
--- a/src/Java/gtPlusPlus/xmod/galacticraft/system/objects/WorldProviderSettings.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package gtPlusPlus.xmod.galacticraft.system.objects;
-
-public class WorldProviderSettings {
-
- private PlanetGenerator mPlanet;
- private final DimensionSettings mDimSettings;
- private final BiomeSettings mBiomeSettings;
-
- public WorldProviderSettings(DimensionSettings d, BiomeSettings b) {
- mPlanet = d.getPlanet();
- mDimSettings = d;
- mBiomeSettings = b;
- }
-
- public synchronized final PlanetGenerator getPlanet() {
- return mPlanet;
- }
-
- public synchronized final void setPlanet(PlanetGenerator aPlanet) {
- mPlanet = aPlanet;
- }
-
- public synchronized final DimensionSettings getDimSettings() {
- return mDimSettings;
- }
-
- public synchronized final BiomeSettings getBiomeSettings() {
- return mBiomeSettings;
- }
-}
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Heat.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Heat.java
deleted file mode 100644
index 68ec0ba0c9..0000000000
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Heat.java
+++ /dev/null
@@ -1,532 +0,0 @@
-package gtPlusPlus.xmod.gregtech.api.metatileentity.implementations;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-
-import gregtech.GT_Mod;
-import gregtech.api.enums.Dyes;
-import gregtech.api.enums.Materials;
-import gregtech.api.enums.OrePrefixes;
-import gregtech.api.enums.Textures.BlockIcons;
-import gregtech.api.interfaces.ITexture;
-import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-import gregtech.api.interfaces.tileentity.IEnergyConnected;
-import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-import gregtech.api.metatileentity.BaseMetaPipeEntity;
-import gregtech.api.metatileentity.MetaPipeEntity;
-import gregtech.api.objects.GT_RenderedTexture;
-import gregtech.api.util.GT_Utility;
-import gregtech.common.GT_Client;
-import gtPlusPlus.core.lib.CORE;
-import gtPlusPlus.xmod.gregtech.api.interfaces.IHeatEntity;
-import gtPlusPlus.xmod.gregtech.api.interfaces.IMetaTileEntityHeatPipe;
-import gtPlusPlus.xmod.gregtech.common.StaticFields59;
-import ic2.api.energy.tile.IEnergySink;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLivingBase;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.util.AxisAlignedBB;
-import net.minecraft.util.EnumChatFormatting;
-import net.minecraft.world.World;
-import net.minecraftforge.common.util.ForgeDirection;
-
-public class GT_MetaPipeEntity_Heat extends MetaPipeEntity implements IMetaTileEntityHeatPipe, IHeatEntity {
-
- public final Materials mMaterial;
- public final long mHeatLossPerMeter, mAmperage, mMaxTemp;
- public final boolean mInsulated, mCanShock;
- public long mTransferredAmperage = 0, mTransferredAmperageLast20 = 0, mTransferredVoltageLast20 = 0;
- public short mOverheat;
-
- private boolean mCheckConnections;
- public byte mDisableInput;
-
- public GT_MetaPipeEntity_Heat(int aID, String aName, String aNameRegional, Materials aMaterial, long aMaxTemp) {
- super(aID, aName, aNameRegional, 0);
- mMaterial = aMaterial;
- mAmperage = 1;
- mMaxTemp = aMaxTemp;
- mInsulated = false;
- mCanShock = true;
- mHeatLossPerMeter = aMaxTemp/1000;
- }
-
- public GT_MetaPipeEntity_Heat(String aName, Materials aMaterial, long aMaxTemp) {
- super(aName, 0);
- mMaterial = aMaterial;
- mAmperage = 1;
- mMaxTemp = aMaxTemp;
- mInsulated = false;
- mCanShock = true;
- mHeatLossPerMeter = aMaxTemp/1000;
- }
-
-
- @Override
- public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
- return new GT_MetaPipeEntity_Heat(mName, mMaterial, mMaxTemp);
- }
-
- @Override
- public void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity aEntity) {
- if (mCanShock && (((BaseMetaPipeEntity) getBaseMetaTileEntity()).mConnections & -128) == 0 && aEntity instanceof EntityLivingBase)
- GT_Utility.applyHeatDamage((EntityLivingBase) aEntity, mTransferredVoltageLast20);
- }
-
- @Override
- public AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ) {
- if (!mCanShock) return super.getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ);
- return AxisAlignedBB.getBoundingBox(aX + 0.125D, aY + 0.125D, aZ + 0.125D, aX + 0.875D, aY + 0.875D, aZ + 0.875D);
- }
-
- @Override
- public boolean isSimpleMachine() {
- return true;
- }
-
- @Override
- public boolean isFacingValid(byte aFacing) {
- return false;
- }
-
- @Override
- public boolean isValidSlot(int aIndex) {
- return true;
- }
-
- @Override
- public final boolean renderInside(byte aSide) {
- return false;
- }
-
- @Override
- public int getProgresstime() {
- return (int) mTransferredAmperage * 64;
- }
-
- @Override
- public int maxProgresstime() {
- return (int) mAmperage * 64;
- }
-
- @Override
- public long injectEnergyUnits(byte aSide, long aVoltage, long aAmperage) {
- if (!getBaseMetaTileEntity().getCoverBehaviorAtSide(aSide).letsEnergyIn(aSide, getBaseMetaTileEntity().getCoverIDAtSide(aSide), getBaseMetaTileEntity().getCoverDataAtSide(aSide), getBaseMetaTileEntity()))
- return 0;
- return transferHeat(aSide, aVoltage, aAmperage, new ArrayList<TileEntity>(Arrays.asList((TileEntity) getBaseMetaTileEntity())));
- }
-
- @Override
- public long transferHeat(byte aSide, long aVoltage, long aAmperage, ArrayList<TileEntity> aAlreadyPassedTileEntityList) {
- if (!this.isConnectedAtSide(aSide) && aSide != 6) {
- return 0L;
- } else {
- long rUsedAmperes = 0L;
- aVoltage -= this.mHeatLossPerMeter;
- if (aVoltage > 0L) {
- for (byte i = 0; i < 6 && aAmperage > rUsedAmperes; ++i) {
- if (i != aSide && this.isConnectedAtSide(i)
- && this.getBaseMetaTileEntity().getCoverBehaviorAtSide(i).letsEnergyOut(i,
- this.getBaseMetaTileEntity().getCoverIDAtSide(i),
- this.getBaseMetaTileEntity().getCoverDataAtSide(i), this.getBaseMetaTileEntity())) {
- TileEntity tTileEntity = this.getBaseMetaTileEntity().getTileEntityAtSide(i);
- if (!aAlreadyPassedTileEntityList.contains(tTileEntity)) {
- aAlreadyPassedTileEntityList.add(tTileEntity);
- if (tTileEntity instanceof IEnergyConnected) {
- if (this.getBaseMetaTileEntity().getColorization() >= 0) {
- byte tColor = ((IEnergyConnected) tTileEntity).getColorization();
- if (tColor >= 0 && tColor != this.getBaseMetaTileEntity().getColorization()) {
- continue;
- }
- }
-
- if (tTileEntity instanceof IGregTechTileEntity
- && ((IGregTechTileEntity) tTileEntity)
- .getMetaTileEntity() instanceof IMetaTileEntityHeatPipe
- && ((IGregTechTileEntity) tTileEntity)
- .getCoverBehaviorAtSide(GT_Utility.getOppositeSide(i))
- .letsEnergyIn(GT_Utility.getOppositeSide(i),
- ((IGregTechTileEntity) tTileEntity)
- .getCoverIDAtSide(GT_Utility.getOppositeSide(i)),
- ((IGregTechTileEntity) tTileEntity)
- .getCoverDataAtSide(GT_Utility.getOppositeSide(i)),
- (IGregTechTileEntity) tTileEntity)) {
- if (((IGregTechTileEntity) tTileEntity).getTimer() > 50L) {
- rUsedAmperes += ((IMetaTileEntityHeatPipe) ((IGregTechTileEntity) tTileEntity)
- .getMetaTileEntity()).transferHeat(GT_Utility.getOppositeSide(i),
- aVoltage, aAmperage - rUsedAmperes,
- aAlreadyPassedTileEntityList);
- }
- } else {
- rUsedAmperes += ((IEnergyConnected) tTileEntity).injectEnergyUnits(
- GT_Utility.getOppositeSide(i), aVoltage, aAmperage - rUsedAmperes);
- }
- } else {
- ForgeDirection tDirection;
-
- if (tTileEntity instanceof IEnergySink) {
- tDirection = ForgeDirection.getOrientation(i).getOpposite();
- if (((IEnergySink) tTileEntity)
- .acceptsEnergyFrom((TileEntity) this.getBaseMetaTileEntity(), tDirection)
- && ((IEnergySink) tTileEntity).getDemandedEnergy() > 0.0D
- && ((IEnergySink) tTileEntity).injectEnergy(tDirection, (double) aVoltage,
- (double) aVoltage) < (double) aVoltage) {
- ++rUsedAmperes;
- }
- }
- }
- }
- }
- }
- }
-
- this.mTransferredAmperage += rUsedAmperes;
- this.mTransferredVoltageLast20 = Math.max(this.mTransferredVoltageLast20, aVoltage);
- this.mTransferredAmperageLast20 = Math.max(this.mTransferredAmperageLast20, this.mTransferredAmperage);
- if (aVoltage <= this.mMaxTemp && this.mTransferredAmperage <= this.mAmperage) {
- return rUsedAmperes;
- } else {
- if (this.mOverheat > GT_Mod.gregtechproxy.mWireHeatingTicks * 100) {
- //this.getBaseMetaTileEntity().setToFire();
- } else {
- this.mOverheat = (short) (this.mOverheat + 100);
- }
-
- return aAmperage;
- }
- }
- }
-
- @Override
- public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
- if (aBaseMetaTileEntity.isServerSide()) {
- this.mTransferredAmperage = 0L;
- if (this.mOverheat > 0) {
- --this.mOverheat;
- }
-
- if (aTick % 20L == 0L) {
- this.mTransferredVoltageLast20 = 0L;
- this.mTransferredAmperageLast20 = 0L;
-
- for (byte tSide = 0; tSide < 6; ++tSide) {
- IGregTechTileEntity tBaseMetaTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityAtSide(tSide);
- byte uSide = GT_Utility.getOppositeSide(tSide);
- if ((this.mCheckConnections || this.isConnectedAtSide(tSide)
- || aBaseMetaTileEntity.getCoverBehaviorAtSide(tSide).alwaysLookConnected(tSide,
- aBaseMetaTileEntity.getCoverIDAtSide(tSide),
- aBaseMetaTileEntity.getCoverDataAtSide(tSide), aBaseMetaTileEntity)
- || tBaseMetaTileEntity != null && tBaseMetaTileEntity.getCoverBehaviorAtSide(uSide)
- .alwaysLookConnected(uSide, tBaseMetaTileEntity.getCoverIDAtSide(uSide),
- tBaseMetaTileEntity.getCoverDataAtSide(uSide), tBaseMetaTileEntity))
- && this.connect(tSide) == 0) {
- this.disconnect(tSide);
- }
- }
-
- if (isGT6Pipes()) {
- this.mCheckConnections = false;
- }
- }
- } else if (aBaseMetaTileEntity.isClientSide() && GT_Client.changeDetected == 4) {
- aBaseMetaTileEntity.issueTextureUpdate();
- }
-
- }
-
- @Override
- public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
- return false;
- }
-
- @Override
- public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
- return false;
- }
-
- @Override
- public String[] getDescription() {
- return new String[]{
- "Max Voltage: " + EnumChatFormatting.GOLD + mMaxTemp + "C" + EnumChatFormatting.GRAY,
- "Loss: " + EnumChatFormatting.RED + mHeatLossPerMeter + EnumChatFormatting.GRAY + " HU per meter",
- CORE.GT_Tooltip
- };
- }
-
- @Override
- public float getThickNess() {
- return 1;
- }
-
- @Override
- public void saveNBTData(NBTTagCompound aNBT) {
- aNBT.setInteger("HeatBuffer", this.HeatBuffer);
- }
-
- @Override
- public void loadNBTData(NBTTagCompound aNBT) {
- this.HeatBuffer = aNBT.getInteger("HeatBuffer");
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
- protected int transmitHeat;
- protected int maxHeatEmitpeerTick;
- protected int HeatBuffer;
-
-
-
-
- public byte getTileEntityBaseType() {
- return 4;
- }
-
- public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aConnections,
- byte aColorIndex, boolean aConnected, boolean aRedstone) {
- float tThickNess = this.getThickNess();
- if (this.mDisableInput == 0) {
- return new ITexture[]{(ITexture) (aConnected
- ? getBaseTexture(tThickNess, 1, this.mMaterial, aColorIndex)
- : new GT_RenderedTexture(this.mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex],
- Dyes.getModulation(aColorIndex, this.mMaterial.mRGBa)))};
- } else {
- byte tMask = 0;
- byte[][] sRestrictionArray = new byte[][]{{2, 3, 5, 4}, {2, 3, 4, 5}, {1, 0, 4, 5}, {1, 0, 4, 5},
- {1, 0, 2, 3}, {1, 0, 2, 3}};
- if (aSide >= 0 && aSide < 6) {
- for (byte i = 0; i < 4; ++i) {
- if (this.isInputDisabledAtSide(sRestrictionArray[aSide][i])) {
- tMask = (byte) (tMask | 1 << i);
- }
- }
- }
-
- return new ITexture[]{
- (ITexture) (aConnected
- ? getBaseTexture(tThickNess, 1, this.mMaterial, aColorIndex)
- : new GT_RenderedTexture(this.mMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex],
- Dyes.getModulation(aColorIndex, this.mMaterial.mRGBa))),
- getRestrictorTexture(tMask)};
- }
- }
-
- protected static final ITexture getBaseTexture(float aThickNess, int aPipeAmount, Materials aMaterial,
- byte aColorIndex) {
- if (aPipeAmount >= 9) {
- return new GT_RenderedTexture(aMaterial.mIconSet.mTextures[OrePrefixes.pipeNonuple.mTextureIndex],
- Dyes.getModulation(aColorIndex, aMaterial.mRGBa));
- } else if (aPipeAmount >= 4) {
- return new GT_RenderedTexture(aMaterial.mIconSet.mTextures[OrePrefixes.pipeQuadruple.mTextureIndex],
- Dyes.getModulation(aColorIndex, aMaterial.mRGBa));
- } else if (aThickNess < 0.124F) {
- return new GT_RenderedTexture(aMaterial.mIconSet.mTextures[OrePrefixes.pipe.mTextureIndex],
- Dyes.getModulation(aColorIndex, aMaterial.mRGBa));
- } else if (aThickNess < 0.374F) {
- return new GT_RenderedTexture(aMaterial.mIconSet.mTextures[OrePrefixes.pipeTiny.mTextureIndex],
- Dyes.getModulation(aColorIndex, aMaterial.mRGBa));
- } else if (aThickNess < 0.499F) {
- return new GT_RenderedTexture(aMaterial.mIconSet.mTextures[OrePrefixes.pipeSmall.mTextureIndex],
- Dyes.getModulation(aColorIndex, aMaterial.mRGBa));
- } else if (aThickNess < 0.749F) {
- return new GT_RenderedTexture(aMaterial.mIconSet.mTextures[OrePrefixes.pipeMedium.mTextureIndex],
- Dyes.getModulation(aColorIndex, aMaterial.mRGBa));
- } else {
- return aThickNess < 0.874F
- ? new GT_RenderedTexture(aMaterial.mIconSet.mTextures[OrePrefixes.pipeLarge.mTextureIndex],
- Dyes.getModulation(aColorIndex, aMaterial.mRGBa))
- : new GT_RenderedTexture(aMaterial.mIconSet.mTextures[OrePrefixes.pipeHuge.mTextureIndex],
- Dyes.getModulation(aColorIndex, aMaterial.mRGBa));
- }
- }
-
- protected static final ITexture getRestrictorTexture(byte aMask) {
- switch (aMask) {
- case 1 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_UP);
- case 2 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_DOWN);
- case 3 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_UD);
- case 4 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_LEFT);
- case 5 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_UL);
- case 6 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_DL);
- case 7 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_NR);
- case 8 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_RIGHT);
- case 9 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_UR);
- case 10 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_DR);
- case 11 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_NL);
- case 12 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_LR);
- case 13 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_ND);
- case 14 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR_NU);
- case 15 :
- return new GT_RenderedTexture(BlockIcons.PIPE_RESTRICTOR);
- default :
- return null;
- }
- }
-
-
- public final boolean isGT6Pipes() {
- return StaticFields59.mGT6StylePipes;
- }
-
- public void updateHeatEntity() {
- int amount = this.getMaxHeatEmittedPerTick() - this.HeatBuffer;
- if (amount > 0) {
- this.addtoHeatBuffer(this.fillHeatBuffer(amount));
- }
- }
-
- public boolean facingMatchesDirection(ForgeDirection direction) {
- return true;
- }
-
- public int maxrequestHeatTick(ForgeDirection directionFrom) {
- return this.getMaxHeatEmittedPerTick();
- }
-
- public int requestHeat(ForgeDirection directionFrom, int requestheat) {
- if (this.facingMatchesDirection(directionFrom)) {
- int heatbuffertemp = this.getHeatBuffer();
- if (this.getHeatBuffer() >= requestheat) {
- this.setHeatBuffer(this.getHeatBuffer() - requestheat);
- this.transmitHeat = requestheat;
- return requestheat;
- } else {
- this.transmitHeat = heatbuffertemp;
- this.setHeatBuffer(0);
- return heatbuffertemp;
- }
- } else {
- return 0;
- }
- }
-
-
- public int getHeatBuffer() {
- return this.HeatBuffer;
- }
-
- public void setHeatBuffer(int HeatBuffer) {
- this.HeatBuffer = HeatBuffer;
- }
-
- public void addtoHeatBuffer(int heat) {
- this.setHeatBuffer(this.getHeatBuffer() + heat);
- }
-
-
- public int fillHeatBuffer(int maxAmount) {
- return maxAmount >= this.getMaxHeatEmittedPerTick() ? this.getMaxHeatEmittedPerTick() : maxAmount;
- }
-
- public int getMaxHeatEmittedPerTick() {
- return (int) (this.mMaxTemp/1000);
- }
-
-
- public boolean onWrenchRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY,
- float aZ) {
- if (isGT6Pipes()) {
- byte tSide = GT_Utility.determineWrenchingSide(aSide, aX, aY, aZ);
- byte tMask = (byte) (1 << tSide);
- if (aPlayer.isSneaking()) {
- if (this.isInputDisabledAtSide(tSide)) {
- this.mDisableInput = (byte) (this.mDisableInput & ~tMask);
- GT_Utility.sendChatToPlayer(aPlayer, this.trans("212", "Input enabled"));
- if (!this.isConnectedAtSide(tSide)) {
- this.connect(tSide);
- }
- } else {
- this.mDisableInput |= tMask;
- GT_Utility.sendChatToPlayer(aPlayer, this.trans("213", "Input disabled"));
- }
- } else if (!this.isConnectedAtSide(tSide)) {
- if (this.connect(tSide) > 0) {
- GT_Utility.sendChatToPlayer(aPlayer, this.trans("214", "Connected"));
- }
- } else {
- this.disconnect(tSide);
- GT_Utility.sendChatToPlayer(aPlayer, this.trans("215", "Disconnected"));
- }
-
- return true;
- } else {
- return false;
- }
- }
-
- public boolean isInputDisabledAtSide(int aSide) {
- return (this.mDisableInput & 1 << aSide) != 0;
- }
-
-
-
-
- @Override
- public int maxHeatInPerTick(ForgeDirection var1) {
- return (int) (this.mMaxTemp/500);
- }
-
- @Override
- public int addHeat(ForgeDirection var1, int var2) {
-
-
-
- /*ForgeDirection dir = ForgeDirection.getOrientation(this.getFacing());
- TileEntity te = this.getBaseMetaTileEntity().getWorld().getTileEntity(this.xCoord + dir.offsetX, this.yCoord + dir.offsetY,
- this.zCoord + dir.offsetZ);
- if (te instanceof IHeatSource) {
- int heatbandwith = ((IHeatSource) te).maxrequestHeatTick(dir.getOpposite());
- double freeEUstorage = (double) this.maxEUStorage - this.EUstorage;
- if (freeEUstorage >= this.productionpeerheat * (double) heatbandwith) {
- this.receivedheat = ((IHeatSource) te).requestHeat(dir.getOpposite(), heatbandwith);
- if (this.receivedheat != 0) {
- this.production = (double) this.receivedheat * this.productionpeerheat;
- this.EUstorage += this.production;
- return true;
- }
- }
- }
-
- this.production = 0.0D;
- this.receivedheat = 0;*/
-
-
- return 0;
- }
-
- @Override
- public int getTransmitHeat() {
- return this.transmitHeat;
- }
-
-
-
-
-
-} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java b/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
index 38589eaac1..abc5558444 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
@@ -7,23 +7,28 @@ import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
-import gregtech.api.enums.*;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.metatileentity.implementations.GT_MetaPipeEntity_Fluid;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Utility;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.lib.LoadedMods;
-import gtPlusPlus.core.material.*;
+import gtPlusPlus.core.material.ALLOY;
+import gtPlusPlus.core.material.ELEMENT;
+import gtPlusPlus.core.material.Material;
import gtPlusPlus.core.recipe.common.CI;
import gtPlusPlus.core.util.Utils;
-import gtPlusPlus.core.util.minecraft.*;
-import gtPlusPlus.xmod.gregtech.api.enums.GregtechItemList;
+import gtPlusPlus.core.util.minecraft.FluidUtils;
+import gtPlusPlus.core.util.minecraft.ItemUtils;
+import gtPlusPlus.core.util.minecraft.MaterialUtils;
+import gtPlusPlus.core.util.minecraft.RecipeUtils;
import gtPlusPlus.xmod.gregtech.api.enums.GregtechOrePrefixes.GT_Materials;
-import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.GT_MetaPipeEntity_Heat;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.GregtechMetaPipeEntityFluid;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.GregtechMetaPipeEntity_Cable;
-import gtPlusPlus.xmod.gregtech.common.tileentities.generators.GregtechMetaTileEntityGeothermalGenerator;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
@@ -101,9 +106,9 @@ public class GregtechConduits {
//Generate Heat Pipes
- GregtechItemList.HeatPipe_Tier_1.set(new GT_MetaPipeEntity_Heat(31021, "gtpp.pipe.heat.basic.01", "Lead Heat Pipe (500C)", Materials.Lead, 500).getStackForm(1L));
- GregtechItemList.HeatPipe_Tier_2.set(new GT_MetaPipeEntity_Heat(31022, "gtpp.pipe.heat.basic.02", "Iron Heat Pipe (500C)", Materials.Iron, 500).getStackForm(1L));
- GregtechItemList.HeatPipe_Tier_3.set(new GT_MetaPipeEntity_Heat(31023, "gtpp.pipe.heat.basic.03", "Silver Heat Pipe (1500C)", Materials.Silver, 1500).getStackForm(1L));
+ //GregtechItemList.HeatPipe_Tier_1.set(new GT_MetaPipeEntity_Heat(31021, "gtpp.pipe.heat.basic.01", "Lead Heat Pipe (500C)", Materials.Lead, 500).getStackForm(1L));
+ //GregtechItemList.HeatPipe_Tier_2.set(new GT_MetaPipeEntity_Heat(31022, "gtpp.pipe.heat.basic.02", "Iron Heat Pipe (500C)", Materials.Iron, 500).getStackForm(1L));
+ //GregtechItemList.HeatPipe_Tier_3.set(new GT_MetaPipeEntity_Heat(31023, "gtpp.pipe.heat.basic.03", "Silver Heat Pipe (1500C)", Materials.Silver, 1500).getStackForm(1L));