aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle105
-rw-r--r--gradle.properties8
-rw-r--r--gradle/wrapper/gradle-wrapper.jarbin0 -> 53636 bytes
-rw-r--r--gradle/wrapper/gradle-wrapper.properties5
-rw-r--r--gradlew164
-rw-r--r--gradlew.bat90
-rw-r--r--src/main/java/GoodGenerator/Blocks/RegularBlock/Casing.java96
-rw-r--r--src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java242
-rw-r--r--src/main/java/GoodGenerator/Client/ClientProxy.java21
-rw-r--r--src/main/java/GoodGenerator/Common/CommonProxy.java11
-rw-r--r--src/main/java/GoodGenerator/Items/MyItemBlocks.java52
-rw-r--r--src/main/java/GoodGenerator/Items/MyItems.java26
-rw-r--r--src/main/java/GoodGenerator/Loader/Loaders.java31
-rw-r--r--src/main/java/GoodGenerator/Main/GoodGenerator.java42
-rw-r--r--src/main/java/GoodGenerator/Tabs/MyTabs.java16
-rw-r--r--src/main/resources/assets/goodgenerator/textures/blocks/MAR_Casing.pngbin0 -> 1878 bytes
-rw-r--r--src/main/resources/assets/goodgenerator/textures/items/test2.pngbin0 -> 666 bytes
-rw-r--r--src/main/resources/assets/goodgenerator/textures/items/test3.pngbin0 -> 666 bytes
-rw-r--r--src/main/resources/mcmod.info16
19 files changed, 925 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000000..7a2dedb14f
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,105 @@
+import java.util.concurrent.TimeUnit
+
+buildscript {
+ repositories {
+ mavenCentral()
+ maven {
+ name = "forge"
+ url = "http://files.minecraftforge.net/maven"
+ }
+ maven {
+ name = "jitpack"
+ url = "https://jitpack.io"
+ }
+ maven {
+ name = "sonatype"
+ url = "https://oss.sonatype.org/content/repositories/snapshots/"
+ }
+ }
+ dependencies {
+ //Defaults to Java 8 & UTF-8 encoding
+ classpath "com.github.GTNH2:ForgeGradle:FG_1.2-SNAPSHOT"
+ }
+}
+
+plugins {
+ id("org.ajoberstar.grgit") version("3.1.1")
+}
+
+apply plugin: 'forge'
+apply plugin: 'idea'
+
+idea {
+ module {
+ inheritOutputDirs = true
+ downloadJavadoc = true
+ downloadSources = true
+ }
+}
+
+configurations.all {
+ resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
+}
+
+sourceCompatibility = targetCompatibility = 1.8
+
+version = modVersion
+group= modGroup
+archivesBaseName = modId
+
+minecraft {
+ version = "${minecraftVersion}-${forgeVersion}-${minecraftVersion}"
+ runDir = "run"
+}
+
+repositories {
+ jcenter()
+ maven {
+ name = "CodeChicken"
+ url = "http://chickenbones.net/maven/"
+ }
+ maven {
+ url = "https://jitpack.io"
+ }
+ maven {
+ name = "ic2"
+ url = "http://maven.ic2.player.to/"
+ }
+ maven {
+ name = "appleCore"
+ url = "http://www.ryanliptak.com/maven/"
+ }
+ ivy {
+ name = "gtnh_download_source"
+ artifactPattern("http://downloads.gtnewhorizons.com/Mods_for_Jenkins/[module]-[revision].[ext]")
+ }
+ maven {
+ name = "UsrvDE/GTNH"
+ url = "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases/"
+ }
+ maven {
+ name = "gt"
+ url = "https://gregtech.overminddl1.com/"
+ }
+}
+
+dependencies {
+ compile("com.github.GTNewHorizons:GT5-Unofficial:experimental-SNAPSHOT:dev") {
+ setChanging(true)
+ }
+ compile files('libs/TecTech-1.7.10-4.10.4-d35bc08e.jar')
+ runtime("eu.usrv:YAMCore:${minecraftVersion}-${yamcoreVersion}:deobf");
+}
+
+processResources
+{
+ inputs.property "version", project.version
+ inputs.property "mcversion", project.minecraft.version
+ from(sourceSets.main.resources.srcDirs) {
+ include 'mcmod.info'
+ expand 'version':project.version, 'mcversion':project.minecraft.version
+ }
+ from(sourceSets.main.resources.srcDirs) {
+ exclude 'mcmod.info'
+ }
+}
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000000..3327bef031
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,8 @@
+modId = GoodGenerator
+modGroup = GoodGenerator
+modVersion = 0.0.1
+
+minecraftVersion=1.7.10
+forgeVersion=10.13.4.1614
+
+yamcoreVersion=0.5.78 \ No newline at end of file
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000000..fd7e590e51
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000000..2d80b69a76
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
new file mode 100644
index 0000000000..91a7e269e1
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000000..8a0b282aa6
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/src/main/java/GoodGenerator/Blocks/RegularBlock/Casing.java b/src/main/java/GoodGenerator/Blocks/RegularBlock/Casing.java
new file mode 100644
index 0000000000..f6f9eb32ae
--- /dev/null
+++ b/src/main/java/GoodGenerator/Blocks/RegularBlock/Casing.java
@@ -0,0 +1,96 @@
+package GoodGenerator.Blocks.RegularBlock;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.GregTech_API;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EnumCreatureType;
+import net.minecraft.util.IIcon;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+
+public class Casing extends Block {
+
+ @SideOnly(Side.CLIENT)
+ protected IIcon[] texture;
+ String[] textureNames;
+ protected String name;
+
+ public Casing(String name, String[] texture, CreativeTabs Tab){
+ super(Material.iron);
+ this.setHardness(18.0F);
+ this.setResistance(10.0F);
+ this.name = name;
+ this.textureNames = texture;
+ GregTech_API.registerMachineBlock(this, -1);
+ }
+
+ public Casing(String name, String[] texture, CreativeTabs Tab,Material material){
+ super(material);
+ this.setHardness(18.0F);
+ this.setResistance(10.0F);
+ this.name = name;
+ this.textureNames = texture;
+ GregTech_API.registerMachineBlock(this, -1);
+ }
+
+ @Override
+ public int damageDropped(int meta) {
+ return meta;
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(int side, int meta) {
+ return meta < this.texture.length ? this.texture[meta] : this.texture[0];
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public void registerBlockIcons(IIconRegister par1IconRegister) {
+ this.texture = new IIcon[this.textureNames.length];
+ for (int i = 0; i < this.textureNames.length; i++) {
+ this.texture[i] = par1IconRegister.registerIcon(this.textureNames[i]);
+ }
+ }
+
+ @Override
+ public void onBlockAdded(World aWorld, int aX, int aY, int aZ) {
+ if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
+ }
+ }
+
+ @Override
+ public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
+ if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
+ }
+ }
+
+ @Override
+ public String getUnlocalizedName() {
+ return this.name;
+ }
+
+ @Override
+ public boolean canBeReplacedByLeaves(IBlockAccess world, int x, int y, int z) {
+ return false;
+ }
+
+ @Override
+ public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) {
+ return false;
+ }
+
+ @Override
+ public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z) {
+ return false;
+ }
+
+
+}
diff --git a/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java b/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java
new file mode 100644
index 0000000000..eac1ac67c9
--- /dev/null
+++ b/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java
@@ -0,0 +1,242 @@
+package GoodGenerator.Blocks.TEs;
+
+import GoodGenerator.Loader.Loaders;
+import GoodGenerator.Main.GoodGenerator;
+import cpw.mods.fml.common.FMLCommonHandler;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Dyes;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.Textures;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import ic2.core.Ic2Fluid;
+import ic2.core.init.InternalName;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.ResourceLocation;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidRegistry;
+import net.minecraftforge.fluids.FluidStack;
+
+import java.util.ArrayList;
+
+public class MultiNqGenerator extends GT_MetaTileEntity_MultiBlockBase {
+
+ @SideOnly(Side.CLIENT)
+ protected IIcon[] texture;
+ protected String textureNames;
+ protected String name;
+ private static final IIcon[] iIcons = new IIcon[4];
+ private static final IIconContainer[] iIconContainers = new IIconContainer[4];
+ private static final ITexture[][] iTextures = new ITexture[4][1];
+ public ItemStack[] circuits = new ItemStack[5];
+ private long mStorage;
+
+ public MultiNqGenerator(String name){super(name);}
+
+ public MultiNqGenerator(int id, String name, String nameRegional){
+ super(id,name,nameRegional);
+ this.name = name;
+ textureNames = GoodGenerator.MOD_ID+":"+name;
+ }
+
+
+
+ @SideOnly(Side.CLIENT)
+ public void registerIcons(IIconRegister aBlockIconRegister) {
+
+ for (int i = 0; i < MultiNqGenerator.iTextures.length; i++) {
+ MultiNqGenerator.iIcons[i] = aBlockIconRegister.registerIcon(GoodGenerator.MOD_ID + ":test");
+ int finalI = i;
+ MultiNqGenerator.iIconContainers[i] = new IIconContainer() {
+ @Override
+ public IIcon getIcon() {
+ return MultiNqGenerator.iIcons[finalI];
+ }
+
+ @Override
+ public IIcon getOverlayIcon() {
+ return MultiNqGenerator.iIcons[finalI];
+ }
+
+ @Override
+ public ResourceLocation getTextureFile() {
+ return new ResourceLocation(GoodGenerator.MOD_ID + ":test");
+ }
+ };
+ }
+
+ }
+
+ @Override
+ public boolean isCorrectMachinePart(ItemStack aStack) {
+ return true;
+ }
+
+ @Override
+ public boolean checkRecipe(ItemStack aStack) {
+
+ ArrayList<FluidStack> tFluids = getStoredFluids();
+
+ FluidStack f1=null,f2=null;
+ float booster = 1.0f;
+ int times = 1;
+ if(tFluids.size() > 0){
+ if(tFluids.contains(Materials.Cryotheum.getFluid(2L))){
+ booster = 2.75f;
+ f1=Materials.Cryotheum.getFluid(2L);
+ }
+ else if(tFluids.contains(Materials.SuperCoolant.getFluid(2L))){
+ booster = 1.5f;
+ f1=Materials.SuperCoolant.getFluid(2L);
+ }
+ else if(tFluids.contains(FluidRegistry.getFluidStack("ic2coolant",2))){
+ booster = 1.05f;
+ f1=FluidRegistry.getFluidStack("ic2coolant",2);
+ }
+ }
+
+ if(tFluids.size() > 0){
+ if (tFluids.contains(Materials.Caesium.getMolten(9L))){
+ times = 2;
+ f2=Materials.Caesium.getMolten(9L);
+ }
+ else if(tFluids.contains(Materials.Uranium235.getMolten(9L))){
+ times = 3;
+ f2=Materials.Uranium235.getMolten(9L);
+ }
+ else if(tFluids.contains(Materials.Naquadah.getMolten(1L))){
+ times = 4;
+ f2=Materials.Naquadah.getMolten(1L);
+ }
+ }
+
+ if(tFluids.size()>0){
+ if(tFluids.contains(Materials.NaquadahEnriched.getMolten(times))){
+ if(f1 != null)
+ depleteInput(f1);
+ if(f2 != null)
+ depleteInput(f2);
+ if(mRuntime == 0 || mRuntime%1200 == 0){
+ depleteInput(Materials.NaquadahEnriched.getMolten(times));
+ this.mOutputFluids = new FluidStack[]{Materials.Naquadah.getMolten(times)};
+ }
+ else this.mOutputFluids = null;
+ addEnergyOutput((long)(32768*times*booster));
+ this.mEUt = (int)(32768*times*booster);
+ this.mProgresstime = 1;
+ this.mMaxProgresstime = 1;
+ return true;
+ }
+ if(tFluids.contains(Materials.Naquadria.getMolten(times))){
+ if(f1 != null)
+ depleteInput(f1);
+ if(f2 != null)
+ depleteInput(f2);
+ if(mRuntime == 0 || mRuntime%300 == 0){
+ depleteInput(Materials.Naquadria.getMolten(times));
+ this.mOutputFluids = new FluidStack[]{Materials.Naquadah.getMolten(times)};
+ }
+ else this.mOutputFluids = null;
+ addEnergyOutput((long)(524288*times*booster));
+ this.mEUt = (int)(524288*times*booster);
+ this.mProgresstime = 1;
+ this.mMaxProgresstime = 1;
+ return true;
+ }
+ }
+
+ this.mEUt = 0;
+ return false;
+ }
+
+ @Override
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX * 2;
+ int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ * 2;
+ int casingAmount = 0;
+ for (int x = -2; x <= 2; x++) {
+ for (int z = -2; z <= 2; z++) {
+ for (int y = 0; y <= 8; y++) {
+ if (x + xDir == 0 && y == 0 && z + zDir == 0) {
+ continue;
+ }
+ IGregTechTileEntity tileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(x + xDir, y, z + zDir);
+ Block block = aBaseMetaTileEntity.getBlockOffset(x + xDir, y, z + zDir);
+
+ if (y != 0 && y != 8 && x != -2 && x != 2 && z != -2 && z != 2) {
+ if (block == Blocks.air) continue;
+ else return false;
+ }
+
+ if (y != 0){
+ if(block == Loaders.MAR_Casing) continue;
+ else return false;
+ }
+
+ if (!addInputToMachineList(tileEntity, 44) && !addOutputToMachineList(tileEntity, 44)
+ && !addMaintenanceToMachineList(tileEntity, 44)
+ && !addDynamoToMachineList(tileEntity,44)) {
+ if (block == GregTech_API.sBlockCasings3 && aBaseMetaTileEntity.getMetaIDOffset(xDir + x, y, zDir + z) == 12) {
+ casingAmount++;
+ } else {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ return casingAmount >= 10 && mDynamoHatches.size() == 1 ;
+ }
+
+ @Override
+ public int getMaxEfficiency(ItemStack aStack) {
+ return 0;
+ }
+
+ @Override
+ public int getPollutionPerTick(ItemStack aStack) {
+ return 0;
+ }
+
+ @Override
+ public int getDamageToComponent(ItemStack aStack) {
+ return 0;
+ }
+
+ @Override
+ public boolean explodesOnComponentBreak(ItemStack aStack) {
+ return false;
+ }
+
+ @Override
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
+ return new MultiNqGenerator(this.mName);
+ }
+
+ @Override
+ public String[] getDescription() {
+ return new String[0];
+ }
+
+ @Override
+ @SuppressWarnings("ALL")
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) {
+ if(aSide == aFacing){
+ if(aActive) return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[44],new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_FRONT_ACTIVE)};
+ return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[44],new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_FRONT)};
+ }
+ return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[44]};
+ }
+}
diff --git a/src/main/java/GoodGenerator/Client/ClientProxy.java b/src/main/java/GoodGenerator/Client/ClientProxy.java
new file mode 100644
index 0000000000..837f7fdcc6
--- /dev/null
+++ b/src/main/java/GoodGenerator/Client/ClientProxy.java
@@ -0,0 +1,21 @@
+package GoodGenerator.Client;
+
+import GoodGenerator.Common.CommonProxy;
+import cpw.mods.fml.common.event.FMLInitializationEvent;
+import cpw.mods.fml.common.event.FMLPostInitializationEvent;
+import cpw.mods.fml.common.event.FMLPreInitializationEvent;
+
+public class ClientProxy extends CommonProxy {
+ @Override
+ public void preInit(FMLPreInitializationEvent event){
+ super.preInit(event);
+ }
+ @Override
+ public void init(FMLInitializationEvent event){
+ super.init(event);
+ }
+ @Override
+ public void postInit(FMLPostInitializationEvent event){
+ super.postInit(event);
+ }
+}
diff --git a/src/main/java/GoodGenerator/Common/CommonProxy.java b/src/main/java/GoodGenerator/Common/CommonProxy.java
new file mode 100644
index 0000000000..28e9063294
--- /dev/null
+++ b/src/main/java/GoodGenerator/Common/CommonProxy.java
@@ -0,0 +1,11 @@
+package GoodGenerator.Common;
+
+import cpw.mods.fml.common.event.FMLInitializationEvent;
+import cpw.mods.fml.common.event.FMLPostInitializationEvent;
+import cpw.mods.fml.common.event.FMLPreInitializationEvent;
+
+public class CommonProxy {
+ public void preInit(FMLPreInitializationEvent event){}
+ public void init(FMLInitializationEvent event){}
+ public void postInit(FMLPostInitializationEvent event){}
+}
diff --git a/src/main/java/GoodGenerator/Items/MyItemBlocks.java b/src/main/java/GoodGenerator/Items/MyItemBlocks.java
new file mode 100644
index 0000000000..38082cda0b
--- /dev/null
+++ b/src/main/java/GoodGenerator/Items/MyItemBlocks.java
@@ -0,0 +1,52 @@
+package GoodGenerator.Items;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.util.GT_LanguageManager;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemBlock;
+import GoodGenerator.Main.GoodGenerator;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+
+public class MyItemBlocks extends ItemBlock {
+ private final String mNoMobsToolTip = GT_LanguageManager.addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block");
+ private final String mNoTileEntityToolTip = GT_LanguageManager.addStringLocalization("gt.notileentityinthisblock", "This is NOT a TileEntity!");
+
+
+ public MyItemBlocks(Block block){
+ super(block);
+ this.setMaxDamage(0);
+ this.setHasSubtypes(true);
+ this.setCreativeTab(GoodGenerator.GG);
+ }
+
+ @Override
+ public int getMetadata(int aMeta) {
+ return aMeta;
+ }
+
+ @Override
+ public String getUnlocalizedName(ItemStack aStack) {
+ return this.field_150939_a.getUnlocalizedName() + "." + this.getDamage(aStack);
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(ItemStack stack, int pass) {
+ return this.field_150939_a.getIcon(0, stack.getItemDamage());
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public IIcon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) {
+ return this.getIcon(stack, renderPass);
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public IIcon getIconFromDamageForRenderPass(int p_77618_1_, int p_77618_2_) {
+ return this.field_150939_a.getIcon(0, p_77618_2_);
+ }
+}
diff --git a/src/main/java/GoodGenerator/Items/MyItems.java b/src/main/java/GoodGenerator/Items/MyItems.java
new file mode 100644
index 0000000000..126880a247
--- /dev/null
+++ b/src/main/java/GoodGenerator/Items/MyItems.java
@@ -0,0 +1,26 @@
+package GoodGenerator.Items;
+
+import GoodGenerator.Main.GoodGenerator;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
+
+public class MyItems extends Item {
+
+ private final String tex;
+
+ public MyItems(String name, CreativeTabs Tab){
+ this.setUnlocalizedName(name);
+ this.setCreativeTab(Tab);
+ this.tex = name;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void registerIcons(IIconRegister iconRegister) {
+ this.itemIcon = iconRegister.registerIcon(GoodGenerator.MOD_ID + ":" + this.tex);
+ }
+
+
+}
diff --git a/src/main/java/GoodGenerator/Loader/Loaders.java b/src/main/java/GoodGenerator/Loader/Loaders.java
new file mode 100644
index 0000000000..11f2a9b183
--- /dev/null
+++ b/src/main/java/GoodGenerator/Loader/Loaders.java
@@ -0,0 +1,31 @@
+package GoodGenerator.Loader;
+
+import GoodGenerator.Blocks.RegularBlock.Casing;
+import GoodGenerator.Blocks.TEs.MultiNqGenerator;
+import GoodGenerator.Items.MyItemBlocks;
+import GoodGenerator.Items.MyItems;
+import GoodGenerator.Main.GoodGenerator;
+import cpw.mods.fml.common.registry.GameRegistry;
+import gregtech.api.enums.GT_Values;
+import net.minecraft.block.Block;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+
+public class Loaders {
+
+ public static final Item test2 = new MyItems("test2",GoodGenerator.GG);
+ public static final Item test3 = new MyItems("test3",GoodGenerator.GG);
+ public static final Block MAR_Casing = new Casing("MAR_Casing",new String[]{
+ GoodGenerator.MOD_ID+":MAR_Casing",
+ },GoodGenerator.GG);
+ public static ItemStack MAR;
+
+ public static void Register(){
+ GameRegistry.registerItem(test2,"test2");
+ GameRegistry.registerItem(test3,"test3");
+ GameRegistry.registerBlock(MAR_Casing, MyItemBlocks.class,"MAR_Casing");
+
+ Loaders.MAR = new MultiNqGenerator(12600+ (GT_Values.VN.length+5) * 8 + 1,"NaG","great naquadah reactor ").getStackForm(1L);
+
+ }
+}
diff --git a/src/main/java/GoodGenerator/Main/GoodGenerator.java b/src/main/java/GoodGenerator/Main/GoodGenerator.java
new file mode 100644
index 0000000000..908cf9f243
--- /dev/null
+++ b/src/main/java/GoodGenerator/Main/GoodGenerator.java
@@ -0,0 +1,42 @@
+package GoodGenerator.Main;
+
+import GoodGenerator.Common.CommonProxy;
+import GoodGenerator.Loader.Loaders;
+import GoodGenerator.Tabs.MyTabs;
+import cpw.mods.fml.common.SidedProxy;
+import cpw.mods.fml.common.event.FMLPostInitializationEvent;
+import cpw.mods.fml.common.event.FMLPreInitializationEvent;
+import net.minecraft.creativetab.CreativeTabs;
+import cpw.mods.fml.common.Mod;
+import cpw.mods.fml.common.event.FMLInitializationEvent;
+
+@SuppressWarnings("ALL")
+@Mod(modid = GoodGenerator.MOD_ID, version = GoodGenerator.VERSION)
+public final class GoodGenerator {
+ public static final String MOD_ID = "GoodGenerator";
+ public static final String VERSION = "1.0";
+
+ public static final CreativeTabs GG = new MyTabs("Good Generator");
+
+ @SidedProxy(clientSide = "GoodGenerator.Client.ClientProxy",serverSide = "GoodGenerator.Common.CommonProxy")
+ public static CommonProxy proxy;
+
+ @Mod.Instance(GoodGenerator.MOD_ID)
+ public static GoodGenerator instance;
+
+ @Mod.EventHandler
+ public static void preInit(FMLPreInitializationEvent event){
+ proxy.preInit(event);
+ }
+ @Mod.EventHandler
+ public static void init(FMLInitializationEvent event){
+ proxy.init(event);
+ Loaders.Register();
+ }
+ @Mod.EventHandler
+ public static void postInit(FMLPostInitializationEvent event){
+ proxy.postInit(event);
+ }
+
+
+}
diff --git a/src/main/java/GoodGenerator/Tabs/MyTabs.java b/src/main/java/GoodGenerator/Tabs/MyTabs.java
new file mode 100644
index 0000000000..4a98e6ed29
--- /dev/null
+++ b/src/main/java/GoodGenerator/Tabs/MyTabs.java
@@ -0,0 +1,16 @@
+package GoodGenerator.Tabs;
+
+import GoodGenerator.Loader.Loaders;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
+
+public class MyTabs extends CreativeTabs {
+ public MyTabs(String name){
+ super(name);
+ }
+
+ @Override
+ public Item getTabIconItem() {
+ return Loaders.test2;
+ }
+}
diff --git a/src/main/resources/assets/goodgenerator/textures/blocks/MAR_Casing.png b/src/main/resources/assets/goodgenerator/textures/blocks/MAR_Casing.png
new file mode 100644
index 0000000000..c59b86c91a
--- /dev/null
+++ b/src/main/resources/assets/goodgenerator/textures/blocks/MAR_Casing.png
Binary files differ
diff --git a/src/main/resources/assets/goodgenerator/textures/items/test2.png b/src/main/resources/assets/goodgenerator/textures/items/test2.png
new file mode 100644
index 0000000000..0fd516231e
--- /dev/null
+++ b/src/main/resources/assets/goodgenerator/textures/items/test2.png
Binary files differ
diff --git a/src/main/resources/assets/goodgenerator/textures/items/test3.png b/src/main/resources/assets/goodgenerator/textures/items/test3.png
new file mode 100644
index 0000000000..0fd516231e
--- /dev/null
+++ b/src/main/resources/assets/goodgenerator/textures/items/test3.png
Binary files differ
diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info
new file mode 100644
index 0000000000..f480667560
--- /dev/null
+++ b/src/main/resources/mcmod.info
@@ -0,0 +1,16 @@
+[
+{
+ "modid": "examplemod",
+ "name": "Example Mod",
+ "description": "Example placeholder mod.",
+ "version": "${version}",
+ "mcversion": "${mcversion}",
+ "url": "",
+ "updateUrl": "",
+ "authorList": ["ExampleDude"],
+ "credits": "The Forge and FML guys, for making this example",
+ "logoFile": "",
+ "screenshots": [],
+ "dependencies": []
+}
+]