Skip to content
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ dependencies {
//compileOnly "micdoodle8.mods:GalacticraftCore:1.7-3.0.12.504:Dev"
//compileOnly "micdoodle8.mods:MicdoodleCore:1.7-3.0.12.504:Dev"
//compileOnly "minechem:Minechem:1.7.10-6.0.407:dev"
//compileOnly "minetweaker:MineTweaker3:1.7.10-3.0.10:dev-full"
compile "minetweaker:MineTweaker3:1.7.10-3.0.10:dev-full"
//compileOnly "mods.railcraft:Railcraft_1.7.10:9.12.3.0:dev"
//compileOnly "mrtjp:ForgeRelocation:0.0.1.4:dev"
//compileOnly "mrtjp:MrTJPCore:1.1.0.34:dev"
Expand Down
28 changes: 23 additions & 5 deletions src/main/java/org/altadoon/gt6x/Gt6xMod.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package org.altadoon.gt6x;

import cpw.mods.fml.common.event.FMLInitializationEvent;
import gregapi.data.CS;
import org.altadoon.gt6x.common.*;
import org.altadoon.gt6x.common.items.ItemMaterialDisplay;
import org.altadoon.gt6x.common.items.MultiItemsX;
import org.altadoon.gt6x.features.GT6XFeature;
import org.altadoon.gt6x.features.basicchem.BasicChemistry;
import org.altadoon.gt6x.features.ceramics.Ceramics;
import org.altadoon.gt6x.features.worldgen.WorldGen;
import org.altadoon.gt6x.features.oil.OilProcessing;
import org.altadoon.gt6x.features.pgm.PgmProcessing;
import org.altadoon.gt6x.features.metallurgy.Metallurgy;
Expand All @@ -28,6 +29,7 @@ public final class Gt6xMod extends gregapi.api.Abstract_Mod {
public static final String MOD_NAME = "GRADLETOKEN_MODNAME";
public static final String VERSION = "GRADLETOKEN_VERSION";
public static final String GROUPNAME = "GRADLETOKEN_GROUPNAME";
public static Gt6xMod instance;
public static gregapi.code.ModData MOD_DATA = new gregapi.code.ModData(MOD_ID, MOD_NAME);

@cpw.mods.fml.common.SidedProxy(modId = MOD_ID, clientSide = "gregapi.api.example.Example_Proxy_Client", serverSide = "gregapi.api.example.Example_Proxy_Server")
Expand Down Expand Up @@ -57,7 +59,8 @@ public final class Gt6xMod extends gregapi.api.Abstract_Mod {
OilProcessing.class,
PgmProcessing.class,
RefractoryMetals.class,
VerticalMixers.class
VerticalMixers.class,
WorldGen.class
};
private final ArrayList<GT6XFeature> enabledFeatures;

Expand All @@ -66,7 +69,23 @@ public Gt6xMod() {

this.modConfig = new Config(allFeatures);
this.enabledFeatures = modConfig.getEnabledFeatures();

// try to use shady reflection code to detect feature classes
// sometimes work sometimes dosent
// try{
// Field field = ClassLoader.class.getDeclaredField("classes");
// field.setAccessible(true);
// Collection<Class<?>> clzs = (Collection<Class<?>>) field.get(this.getClass().getClassLoader());
// for(var claz:clzs){
// if(claz.getName().contains("org.altadoon.gt6x.features.")){
// System.out.println(claz.getName());
// if(claz.getSuperclass().equals(GT6XFeature.class)){
// allFeatures.add((Class<? extends GT6XFeature>) claz);
// }
// }
// }
// } catch (Exception ignored){
// ignored.printStackTrace();
// }
final Gt6xMod copy = this;
GT.mBeforePreInit.add(copy::prePreInit);
GT.mAfterPreInit.add(copy::postPreInit);
Expand All @@ -80,14 +99,13 @@ public void onModPreInit2(cpw.mods.fml.common.event.FMLPreInitializationEvent aE
MTx.touch();
RMx.init();
MultiItemsX.instance = new MultiItemsX(MOD_ID, "gt6x.multiitems");

for (GT6XFeature feature : enabledFeatures) {
feature.preInit();
}
}

@Override
public void onModInit2(cpw.mods.fml.common.event.FMLInitializationEvent aEvent) {
public void onModInit2(FMLInitializationEvent aEvent) {
for (GT6XFeature feature : enabledFeatures) {
feature.init();
}
Expand Down
9 changes: 1 addition & 8 deletions src/main/java/org/altadoon/gt6x/ProxyClient.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
package org.altadoon.gt6x;

import gregapi.api.Abstract_Proxy;


/**
* @author Max Mustermann
*
* An example implementation for a Clientside Proxy using my System.
*/
public final class ProxyClient extends Abstract_Proxy {
public class ProxyClient extends ProxyServer {
// Insert your Clientside-only implementation of Stuff here
}
20 changes: 14 additions & 6 deletions src/main/java/org/altadoon/gt6x/ProxyServer.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
package org.altadoon.gt6x;

import cpw.mods.fml.common.IWorldGenerator;
import gregapi.api.Abstract_Proxy;
import gregapi.data.CS;
import gregapi.worldgen.WorldgenObject;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;

import java.util.Random;

/**
* @author Max Mustermann
*
* An example implementation for a Serverside Proxy using my System.
*/
public final class ProxyServer extends Abstract_Proxy {

public class ProxyServer extends Abstract_Proxy implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
// if(world.provider.dimensionId == CS.DIM_OVERWORLD){
// new WorldgenObject().generate(world,world.getChunkFromChunkCoords(chunkX,chunkZ),)
// }
}
// Insert your Serverside-only implementation of Stuff here
}
2 changes: 2 additions & 0 deletions src/main/java/org/altadoon/gt6x/common/RMx.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package org.altadoon.gt6x.common;

import gregapi.recipes.Recipe.RecipeMap;
import org.altadoon.gt6x.features.metallurgy.utils.EAFSmeltingRecipe;

import static gregapi.data.CS.RES_PATH_GUI;

/** Common recipe maps */
public class RMx {
public static RecipeMap sintering = null;
public static RecipeMap electric_arc_furnace = EAFSmeltingRecipe.FakeRecipes;

public static void init() {
sintering = new RecipeMap(null, "gt6x.recipe.sintering", "Sintering", null, 0, 1, RES_PATH_GUI+"machines/Sintering", 6, 1, 1, 0, 0, 0, 1, 1, "", 1, "", true, true, true, true, false, true, true);
Expand Down
101 changes: 101 additions & 0 deletions src/main/java/org/altadoon/gt6x/common/recipe/RB.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
package org.altadoon.gt6x.common.recipe;

import gregapi.data.RM;
import gregapi.recipes.Recipe;

public class RB {
public static final RB DidYouKnow=new RB(RM.DidYouKnow)
, Autocrafter=new RB(RM.Autocrafter)
, DistillationTower=new RB(RM.DistillationTower)
, CryoDistillationTower=new RB(RM.CryoDistillationTower)
, SteamCracking=new RB(RM.SteamCracking)
, CatalyticCracking=new RB(RM.CatalyticCracking)
, Fermenter=new RB(RM.Fermenter)
, Distillery=new RB(RM.Distillery)
, Drying=new RB(RM.Drying)
, Coagulator=new RB(RM.Coagulator)
, CrystallisationCrucible=new RB(RM.CrystallisationCrucible)
, Mixer=new RB(RM.Mixer)
, HeatMixer=new RB(RM.HeatMixer)
, BurnMixer=new RB(RM.BurnMixer)
, CryoMixer=new RB(RM.CryoMixer)
, CokeOven=new RB(RM.CokeOven)
, Roasting=new RB(RM.Roasting)
, Bath=new RB(RM.Bath)
, Sluice=new RB(RM.Sluice)
, MagneticSeparator=new RB(RM.MagneticSeparator)
, Sifting=new RB(RM.Sifting)
, Calciner=new RB(RM.Calciner)
, ImplosionCompressor=new RB(RM.ImplosionCompressor)
, Compressor=new RB(RM.Compressor)
, Injector=new RB(RM.Injector)
, Loom=new RB(RM.Loom)
, Laminator=new RB(RM.Laminator)
, Autoclave=new RB(RM.Autoclave)
, Freezer=new RB(RM.Freezer)
, Polarizer=new RB(RM.Polarizer)
, Lightning=new RB(RM.Lightning)
, Slicer=new RB(RM.Slicer)
, Lathe=new RB(RM.Lathe)
, Debarker=new RB(RM.Debarker)
, Press=new RB(RM.Press)
, Squeezer=new RB(RM.Squeezer)
, Juicer=new RB(RM.Juicer)
, Furnace=new RB(RM.Furnace)
, Microwave=new RB(RM.Microwave)
, Cooking=new RB(RM.Cooking)
, BumbleQueens=new RB(RM.BumbleQueens)
, Bumblelyzer=new RB(RM.Bumblelyzer)
, Trees=new RB(RM.Trees)
, Plantalyzer=new RB(RM.Plantalyzer)
, Wiremill=new RB(RM.Wiremill)
, ClusterMill=new RB(RM.ClusterMill)
, RollingMill=new RB(RM.RollingMill)
, RollBender=new RB(RM.RollBender)
, RollFormer=new RB(RM.RollFormer)
, LaserEngraver=new RB(RM.LaserEngraver)
, Welder=new RB(RM.Welder)
, Anvil=new RB(RM.Anvil)
, AnvilBendSmall=new RB(RM.AnvilBendSmall)
, AnvilBendBig=new RB(RM.AnvilBendBig)
, Centrifuge=new RB(RM.Centrifuge)
, Electrolyzer=new RB(RM.Electrolyzer)
, ToolHeads=new RB(RM.ToolHeads)
, Sharpening=new RB(RM.Sharpening)
, CrucibleAlloying=new RB(RM.CrucibleAlloying)
, CrucibleSmelting=new RB(RM.CrucibleSmelting)
, Cutter=new RB(RM.Cutter)
, Smelter=new RB(RM.Smelter)
, Mortar=new RB(RM.Mortar)
, Shredder=new RB(RM.Shredder)
, Crusher=new RB(RM.Crusher)
, Extruder=new RB(RM.Extruder)
, Hammer=new RB(RM.Hammer)
, Chisel=new RB(RM.Chisel)
, Nanofab=new RB(RM.Nanofab)
, Printer=new RB(RM.Printer)
, ScannerVisuals=new RB(RM.ScannerVisuals)
, ScannerMolecular=new RB(RM.ScannerMolecular)
, Massfab=new RB(RM.Massfab)
, Replicator=new RB(RM.Replicator)
, Fusion=new RB(RM.Fusion)
, Canner=new RB(RM.Canner)
, Boxinator=new RB(RM.Boxinator)
, Unboxinator=new RB(RM.Unboxinator)
, Generifier=new RB(RM.Generifier)
, BedrockOreList=new RB(RM.BedrockOreList)
, ByProductList=new RB(RM.ByProductList)
, BlastFurnace=new RB(RM.BlastFurnace)
, VacuumFreezer=new RB(RM.VacuumFreezer)
, Assembler=new RB(RM.Assembler)
, CNC=new RB(RM.CNC);

public final Recipe.RecipeMap MAP;
RB(Recipe.RecipeMap aRecipeMap){
MAP = aRecipeMap;
}

public RecipeBuilder builder(){
return new RecipeBuilder(MAP);
}
}
Loading