diff options
| author | boubou19 <miisterunknown@gmail.com> | 2023-01-30 17:05:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-30 17:05:23 +0100 |
| commit | 39a9523ba7bd565b9b63014f6c12b50d7a7e716c (patch) | |
| tree | fe2e2edb6ebfbc9882c3c51a7ab104ac711d946f /src | |
| parent | 6c5ca8588caa97f6e7355ba4ad81a307bade3c01 (diff) | |
| parent | 58e8ee6f8ce04e3a3291d0d684c875aa4b7cfd50 (diff) | |
| download | GT5-Unofficial-39a9523ba7bd565b9b63014f6c12b50d7a7e716c.tar.gz GT5-Unofficial-39a9523ba7bd565b9b63014f6c12b50d7a7e716c.tar.bz2 GT5-Unofficial-39a9523ba7bd565b9b63014f6c12b50d7a7e716c.zip | |
Merge pull request #132 from GTNewHorizons/CelestialThingy
Eye of Harmony
Diffstat (limited to 'src')
110 files changed, 85919 insertions, 282 deletions
diff --git a/src/main/java/com/github/technus/tectech/TecTech.java b/src/main/java/com/github/technus/tectech/TecTech.java index 6640949617..158f10da25 100644 --- a/src/main/java/com/github/technus/tectech/TecTech.java +++ b/src/main/java/com/github/technus/tectech/TecTech.java @@ -19,7 +19,9 @@ import com.github.technus.tectech.mechanics.elementalMatter.core.commands.EMList import com.github.technus.tectech.mechanics.elementalMatter.core.definitions.registry.EMDefinitionsRegistry; import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.EMTransformationRegistry; import com.github.technus.tectech.mechanics.enderStorage.EnderWorldSavedData; +import com.github.technus.tectech.nei.IMCForNEI; import com.github.technus.tectech.proxy.CommonProxy; +import com.github.technus.tectech.recipe.EyeOfHarmonyRecipeStorage; import com.github.technus.tectech.util.XSTR; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Loader; @@ -34,7 +36,9 @@ import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.util.Collection; import java.util.Iterator; +import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; +import pers.gwyog.gtneioreplugin.plugin.block.ModBlocks; @Mod( modid = Reference.MODID, @@ -209,6 +213,7 @@ public class TecTech { MainLoader.load(definitionsRegistry); MainLoader.addAfterGregTechPostLoadRunner(); + IMCForNEI.IMCSender(); } @Mod.EventHandler @@ -229,8 +234,16 @@ public class TecTech { pEvent.registerServerCommand(new ChargeCommand()); pEvent.registerServerCommand(new MassCommand()); } + + // This must be done after game load otherwise it fails. + eyeOfHarmonyRecipeStorage = new EyeOfHarmonyRecipeStorage(); + // The reason we do this is to force the fields inside the class to instantiate at world load so NEI + // displays properly. + eyeOfHarmonyRecipeStorage.recipeLookUp(new ItemStack(ModBlocks.blocks.get("Ow"))); } + public static EyeOfHarmonyRecipeStorage eyeOfHarmonyRecipeStorage = null; + @Mod.EventHandler public void onServerAboutToStart(FMLServerAboutToStartEvent aEvent) { chunkDataHandler.clearData(); diff --git a/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/DreamCraftRecipeLoader.java b/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/DreamCraftRecipeLoader.java index e4d0b39733..1c7a56cb5c 100644 --- a/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/DreamCraftRecipeLoader.java +++ b/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/DreamCraftRecipeLoader.java @@ -1,6 +1,8 @@ package com.github.technus.tectech.compatibility.dreamcraft; import static com.github.technus.tectech.loader.recipe.BaseRecipeLoader.getOrDefault; +import static com.google.common.math.LongMath.pow; +import static gregtech.api.util.GT_ModHandler.getModItem; import com.github.technus.tectech.Reference; import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.EMTransformationRegistry; @@ -12,17 +14,14 @@ import com.github.technus.tectech.thing.metaTileEntity.multi.em_machine.Behaviou import com.github.technus.tectech.thing.metaTileEntity.multi.em_machine.Behaviour_Recycler; import com.github.technus.tectech.thing.metaTileEntity.multi.em_machine.GT_MetaTileEntity_EM_machine; import cpw.mods.fml.common.Loader; -import gregtech.api.enums.GT_Values; -import gregtech.api.enums.ItemList; -import gregtech.api.enums.Materials; -import gre |
