diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-03 03:09:40 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-03 03:09:40 +1000 |
commit | 5aec46ffb855440256e27fc3c03c3c412b7af21d (patch) | |
tree | 5d0ee38cfc3adbf58995523562b74d5e80b4325c /src/Java/miscutil/core | |
parent | a353efaeeccd07e3be797873286701474b7923f7 (diff) | |
download | GT5-Unofficial-5aec46ffb855440256e27fc3c03c3c412b7af21d.tar.gz GT5-Unofficial-5aec46ffb855440256e27fc3c03c3c412b7af21d.tar.bz2 GT5-Unofficial-5aec46ffb855440256e27fc3c03c3c412b7af21d.zip |
+ Basically finished the Power Sub-Station in a single commit.
> It needs proper power storage and the shape needs refining, but otherwise works good.
Diffstat (limited to 'src/Java/miscutil/core')
3 files changed, 30 insertions, 1 deletions
diff --git a/src/Java/miscutil/core/handler/COMPAT_HANDLER.java b/src/Java/miscutil/core/handler/COMPAT_HANDLER.java index fc43b9a09d..162a05b369 100644 --- a/src/Java/miscutil/core/handler/COMPAT_HANDLER.java +++ b/src/Java/miscutil/core/handler/COMPAT_HANDLER.java @@ -27,6 +27,7 @@ import miscutil.core.handler.registration.gregtech.GregtechIndustrialMassFabrica import miscutil.core.handler.registration.gregtech.GregtechIndustrialPlatePress; import miscutil.core.handler.registration.gregtech.GregtechIndustrialWiremill; import miscutil.core.handler.registration.gregtech.GregtechIronBlastFurnace; +import miscutil.core.handler.registration.gregtech.GregtechPowerSubStation; import miscutil.core.handler.registration.gregtech.GregtechRocketFuelGenerator; import miscutil.core.handler.registration.gregtech.GregtechSafeBlock; import miscutil.core.handler.registration.gregtech.GregtechSolarGenerators; @@ -92,6 +93,7 @@ public class COMPAT_HANDLER { GregtechIndustrialMassFabricator.run(); //GregtechIndustrialSinter.run(); GregtechSolarGenerators.run(); + GregtechPowerSubStation.run(); } } diff --git a/src/Java/miscutil/core/handler/registration/gregtech/GregtechPowerSubStation.java b/src/Java/miscutil/core/handler/registration/gregtech/GregtechPowerSubStation.java new file mode 100644 index 0000000000..58319ab4b4 --- /dev/null +++ b/src/Java/miscutil/core/handler/registration/gregtech/GregtechPowerSubStation.java @@ -0,0 +1,27 @@ +package miscutil.core.handler.registration.gregtech; + +import miscutil.core.util.Utils; +import miscutil.xmod.gregtech.api.enums.GregtechItemList; +import miscutil.xmod.gregtech.common.tileentities.machines.multi.GregtechMetaTileEntityPowerSubStationController; + +public class GregtechPowerSubStation +{ + + + + public static void run() + { + if (miscutil.core.lib.LoadedMods.Gregtech){ + Utils.LOG_INFO("Gregtech5u Content | Registering Power Substation Node."); + run1(); + } + + } + + private static void run1() + { + //Steam Condensors + GregtechItemList.PowerSubStation.set(new GregtechMetaTileEntityPowerSubStationController(802, "substation.01.input.single", "Power Substation Node").getStackForm(1L)); + + } +} diff --git a/src/Java/miscutil/core/util/Utils.java b/src/Java/miscutil/core/util/Utils.java index 02363927a1..cbd488afab 100644 --- a/src/Java/miscutil/core/util/Utils.java +++ b/src/Java/miscutil/core/util/Utils.java @@ -486,7 +486,7 @@ public class Utils { methode.setAccessible(true); Utils.LOG_WARNING("7 "+methode.isAccessible()); ItemStack temp = (ItemStack) methode.invoke(item, cellID++, yourName, new Block[0]); - Utils.LOG_INFO("8 "+temp.getDisplayName()); + Utils.LOG_INFO("Successfully created "+temp.getDisplayName()+"s."); FluidContainerRegistry.registerFluidContainer(FluidUtils.getFluidStack(s.toLowerCase(), 0), temp.copy(), Ic2Items.cell.copy()); UtilsItems.addItemToOreDictionary(temp.copy(), "cell"+s); return temp; |