aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/github/technus/tectech/Reference.java (renamed from src/main/java/com/github/technus/tectech/auxiliary/Reference.java)5
-rw-r--r--src/main/java/com/github/technus/tectech/TecTech.java207
-rw-r--r--src/main/java/com/github/technus/tectech/Util.java26
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/dreamcraft/DreamCraftRecipeLoader.java2
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/dreamcraft/NoDreamCraftBlockLoader.java11
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/dreamcraft/NoDreamCraftMachineLoader.java18
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/gtpp/GtppAtomLoader.java4
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/AspectDefinitionCompatEnabled.java78
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/AspectDefinitionCompat.java (renamed from src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/AspectDefinitionCompat.java)6
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/AspectDefinitionCompatEnabled.java78
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/dComplexAspectDefinition.java (renamed from src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/dComplexAspectDefinition.java)33
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/ePrimalAspectDefinition.java (renamed from src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/ePrimalAspectDefinition.java)9
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/iElementalAspect.java (renamed from src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/iElementalAspect.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/EssentiaCompat.java (renamed from src/main/java/com/github/technus/tectech/compatibility/thaumcraft/EssentiaCompat.java)6
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/EssentiaCompatEnabled.java (renamed from src/main/java/com/github/technus/tectech/compatibility/thaumcraft/EssentiaCompatEnabled.java)15
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_essentiaDequantizer.java8
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_essentiaQuantizer.java8
-rw-r--r--src/main/java/com/github/technus/tectech/entity/fx/BlockHint.java2
-rw-r--r--src/main/java/com/github/technus/tectech/loader/MainLoader.java277
-rw-r--r--src/main/java/com/github/technus/tectech/loader/TecTechConfig.java (renamed from src/main/java/com/github/technus/tectech/auxiliary/TecTechConfig.java)18
-rw-r--r--src/main/java/com/github/technus/tectech/loader/entity/EntityLoader.java (renamed from src/main/java/com/github/technus/tectech/loader/EntityLoader.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/loader/gui/CreativeTabTecTech.java51
-rw-r--r--src/main/java/com/github/technus/tectech/loader/gui/ModGuiHandler.java (renamed from src/main/java/com/github/technus/tectech/loader/ModGuiHandler.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/loader/mechanics/ElementalLoader.java (renamed from src/main/java/com/github/technus/tectech/loader/ElementalLoader.java)18
-rw-r--r--src/main/java/com/github/technus/tectech/loader/recipe/BloodyRecipeLoader.java (renamed from src/main/java/com/github/technus/tectech/loader/BloodyRecipeLoader.java)4
-rw-r--r--src/main/java/com/github/technus/tectech/loader/recipe/RecipeLoader.java (renamed from src/main/java/com/github/technus/tectech/loader/RecipeLoader.java)14
-rw-r--r--src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java (renamed from src/main/java/com/github/technus/tectech/loader/MachineLoader.java)5
-rw-r--r--src/main/java/com/github/technus/tectech/loader/thing/ThingsLoader.java (renamed from src/main/java/com/github/technus/tectech/loader/ThingsLoader.java)31
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/dataTransport/DataPacket.java (renamed from src/main/java/com/github/technus/tectech/dataFramework/DataPacket.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/dataTransport/InventoryDataPacket.java (renamed from src/main/java/com/github/technus/tectech/dataFramework/InventoryDataPacket.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/dataTransport/QuantumDataPacket.java (renamed from src/main/java/com/github/technus/tectech/dataFramework/QuantumDataPacket.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/README (renamed from src/main/java/com/github/technus/tectech/elementalMatter/README)0
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalDecay.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalDecay.java)8
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalDefinitionStackMap.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalDefinitionStackMap.java)8
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalInstanceStackMap.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalInstanceStackMap.java)12
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalMutableDefinitionStackMap.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalMutableDefinitionStackMap.java)12
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalStackMap.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalStackMap.java)6
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/commands/GiveEM.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/commands/GiveEM.java)22
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/commands/ListEM.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/commands/ListEM.java)6
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/iElementalInstanceContainer.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/iElementalInstanceContainer.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/rElementalRecipe.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/rElementalRecipe.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/rElementalRecipeMap.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/rElementalRecipeMap.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/stacks/cElementalDefinitionStack.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/stacks/cElementalDefinitionStack.java)8
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/stacks/cElementalInstanceStack.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/stacks/cElementalInstanceStack.java)28
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/stacks/iHasElementalDefinition.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/stacks/iHasElementalDefinition.java)4
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/tElementalException.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/tElementalException.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/templates/cElementalDefinition.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalDefinition.java)10
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/templates/cElementalPrimitive.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalPrimitive.java)20
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/templates/iElementalDefinition.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/templates/iElementalDefinition.java)16
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aFluidDequantizationInfo.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aFluidDequantizationInfo.java)4
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aFluidQuantizationInfo.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aFluidQuantizationInfo.java)4
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aItemDequantizationInfo.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aItemDequantizationInfo.java)4
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aItemQuantizationInfo.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aItemQuantizationInfo.java)4
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aOredictDequantizationInfo.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aOredictDequantizationInfo.java)4
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aOredictQuantizationInfo.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aOredictQuantizationInfo.java)4
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/bTransformationInfo.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/bTransformationInfo.java)6
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/iExchangeInfo.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/iExchangeInfo.java)2
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/complex/atom/dAtomDefinition.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/atom/dAtomDefinition.java)59
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/complex/atom/iaeaNuclide.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/atom/iaeaNuclide.java)4
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/complex/hadron/dHadronDefinition.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/hadron/dHadronDefinition.java)30
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/cPrimitiveDefinition.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/cPrimitiveDefinition.java)6
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eBosonDefinition.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eBosonDefinition.java)8
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eLeptonDefinition.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eLeptonDefinition.java)8
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eNeutrinoDefinition.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eNeutrinoDefinition.java)8
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eQuarkDefinition.java (renamed from src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eQuarkDefinition.java)6
-rw-r--r--src/main/java/com/github/technus/tectech/nei/TT_NEI_ResearchHandler.java2
-rw-r--r--src/main/java/com/github/technus/tectech/nei/TT_NEI_ScannerHandler.java2
-rw-r--r--src/main/java/com/github/technus/tectech/proxy/ClientProxy.java14
-rw-r--r--src/main/java/com/github/technus/tectech/recipe/TT_recipe.java10
-rw-r--r--src/main/java/com/github/technus/tectech/recipe/TT_recipeAdder.java12
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/QuantumGlassBlock.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/QuantumStuffBlock.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/QuantumStuffRender.java4
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/ReactorSimBlock.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/casing/GT_Block_HintTT.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/item/ConstructableTriggerItem.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/item/DebugElementalInstanceContainer_EM.java10
-rw-r--r--src/main/java/com/github/technus/tectech/thing/item/ElementalDefinitionContainer_EM.java8
-rw-r--r--src/main/java/com/github/technus/tectech/thing/item/ElementalDefinitionScanStorage_EM.java6
-rw-r--r--src/main/java/com/github/technus/tectech/thing/item/EuMeterGT.java4
-rw-r--r--src/main/java/com/github/technus/tectech/thing/item/FrontRotationTriggerItem.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/item/ParametrizerMemoryCard.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/item/gui/ScanDisplayScreen.java4
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_DataConnector.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_ElementalContainer.java16
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_InputData.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_InputDataItems.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OutputData.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OutputDataItems.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OverflowElemental.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Rack.java13
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Uncertainty.java4
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/gui/GT_GUIContainer_Uncertainty.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_computer.java6
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_dataBank.java6
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_decay.java4
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_dequantizer.java16
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_infuser.java4
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_quantizer.java30
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_research.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_scanner.java14
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_switch.java4
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_transformer.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_microwave.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_teslaCoil.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java24
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/network/RotationPacketDispatcher.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Centrifuge.java34
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Electrolyzer.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_ElectromagneticSeparator.java10
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_PrecisionLaser.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Recycler.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Scanner.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/GT_MetaTileEntity_EM_machine.java4
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/single/GT_MetaTileEntity_DataReader.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/single/GT_MetaTileEntity_DebugStructureWriter.java6
-rw-r--r--src/main/java/com/github/technus/tectech/thing/tileEntity/ReactorSimTileEntity.java2
-rw-r--r--src/main/java/openmodularturrets/blocks/turretbases/TurretBaseEM.java7
-rw-r--r--src/main/java/openmodularturrets/blocks/turretheads/TurretHeadEM.java5
-rw-r--r--src/main/java/openmodularturrets/entity/projectiles/projectileEM.java24
-rw-r--r--src/main/java/openmodularturrets/entity/projectiles/projectileRenderEM.java2
-rw-r--r--src/main/java/openmodularturrets/tileentity/turret/TileTurretHeadEM.java2
-rw-r--r--src/main/java/openmodularturrets/tileentity/turretbase/TileTurretBaseEM.java2
123 files changed, 850 insertions, 788 deletions
diff --git a/src/main/java/com/github/technus/tectech/auxiliary/Reference.java b/src/main/java/com/github/technus/tectech/Reference.java
index 828974af05..6b5db0a519 100644
--- a/src/main/java/com/github/technus/tectech/auxiliary/Reference.java
+++ b/src/main/java/com/github/technus/tectech/Reference.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.auxiliary;
+package com.github.technus.tectech;
public final class Reference {
public static final String MODID = "tectech";
@@ -7,8 +7,11 @@ public final class Reference {
public static final String COLLECTIONNAME = "TecTech";
public static final String CLIENTSIDE = "com.github.technus.tectech.proxy.ClientProxy";
public static final String SERVERSIDE = "com.github.technus.tectech.proxy.CommonProxy";
+
public static final String COFHCORE = "CoFHCore";
public static final String THAUMCRAFT = "Thaumcraft";
+ public static final String DREAMCRAFT = "dreamcraft";
+ public static final String GTPLUSPLUS = "miscutils";
private Reference() {}
}
diff --git a/src/main/java/com/github/technus/tectech/TecTech.java b/src/main/java/com/github/technus/tectech/TecTech.java
index 3dc8d2aed7..c289845934 100644
--- a/src/main/java/com/github/technus/tectech/TecTech.java
+++ b/src/main/java/com/github/technus/tectech/TecTech.java
@@ -1,38 +1,18 @@
package com.github.technus.tectech;
-import com.github.technus.tectech.auxiliary.Reference;
-import com.github.technus.tectech.auxiliary.TecTechConfig;
-import com.github.technus.tectech.elementalMatter.core.commands.GiveEM;
-import com.github.technus.tectech.elementalMatter.core.commands.ListEM;
import com.github.technus.tectech.loader.MainLoader;
-import com.github.technus.tectech.loader.ModGuiHandler;
+import com.github.technus.tectech.loader.TecTechConfig;
+import com.github.technus.tectech.mechanics.elementalMatter.core.commands.GiveEM;
+import com.github.technus.tectech.mechanics.elementalMatter.core.commands.ListEM;
import com.github.technus.tectech.proxy.CommonProxy;
-import com.github.technus.tectech.thing.metaTileEntity.Textures;
-import com.github.technus.tectech.thing.metaTileEntity.multi.base.network.RotationPacketDispatcher;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.*;
-import cpw.mods.fml.common.network.NetworkRegistry;
-import cpw.mods.fml.common.registry.GameData;
-import cpw.mods.fml.common.registry.GameRegistry;
import eu.usrv.yamcore.auxiliary.IngameErrorLog;
import eu.usrv.yamcore.auxiliary.LogHelper;
-import gregtech.api.enums.GT_Values;
-import gregtech.api.enums.Materials;
-import gregtech.api.util.GT_Recipe;
-import net.minecraft.block.Block;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraftforge.fluids.Fluid;
-import net.minecraftforge.fluids.FluidStack;
-
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.HashSet;
-
-import static com.github.technus.tectech.CommonValues.*;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
-import static gregtech.api.enums.Dyes.*;
+
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION, dependencies = "required-after:Forge@[10.13.4.1614,);"
+ "required-after:YAMCore@[0.5.70,);" + "required-after:gregtech;" + "after:CoFHCore;" + "after:Thaumcraft;" + "after:dreamcraft;")
@@ -43,200 +23,71 @@ public class TecTech {
@Mod.Instance(Reference.MODID)
public static TecTech instance;
- public static final XSTR Rnd = XSTR.XSTR_INSTANCE;
- public static final LogHelper Logger = new LogHelper(Reference.MODID);
- private static IngameErrorLog Module_AdminErrorLogs;
- public static MainLoader GTCustomLoader;
- public static TecTechConfig ModConfig;
- public static CreativeTabs mainTab;
+ public static final XSTR RANDOM = XSTR.XSTR_INSTANCE;
+ public static final LogHelper LOGGER = new LogHelper(Reference.MODID);
+
+ private static IngameErrorLog moduleAdminErrorLogs;
+ public static TecTechConfig configTecTech;
- public static boolean hasCOFH = false, hasThaumcraft = false;
+ /**
+ * For Loader.isModLoaded checks during the runtime
+ */
+ public static boolean hasCOFH = false;
public static final byte tectechTexturePage1=8;
public static void AddLoginError(String pMessage) {
- if (Module_AdminErrorLogs != null) {
- Module_AdminErrorLogs.AddErrorLogOnAdminJoin(pMessage);
+ if (moduleAdminErrorLogs != null) {
+ moduleAdminErrorLogs.AddErrorLogOnAdminJoin(pMessage);
}
}
static {
- for(int i=0;i<16;i++){
- GT_Values.V[i]=V[i];
- GT_Values.VN[i]=VN[i];
- GT_Values.VOLTAGE_NAMES[i]=VOLTAGE_NAMES[i];
- }
+ MainLoader.staticLoad();
}
@Mod.EventHandler
public void PreLoad(FMLPreInitializationEvent PreEvent) {
- Logger.setDebugOutput(true);
-
- dyeLightBlue.mRGBa[0]=96;
- dyeLightBlue.mRGBa[1]=128;
- dyeLightBlue.mRGBa[2]=255;
- dyeBlue.mRGBa[0]=0;
- dyeBlue.mRGBa[1]=32;
- dyeBlue.mRGBa[2]=255;
- MACHINE_METAL.mRGBa[0]=210;
- MACHINE_METAL.mRGBa[1]=220;
- MACHINE_METAL.mRGBa[2]=255;
-
- try {
- new Textures();
- }catch (Throwable t){
- Logger.error("Loading textures...",t);
- }
+ LOGGER.setDebugOutput(true);
- ModConfig = new TecTechConfig(PreEvent.getModConfigurationDirectory(), Reference.COLLECTIONNAME,
+ configTecTech = new TecTechConfig(PreEvent.getModConfigurationDirectory(), Reference.COLLECTIONNAME,
Reference.MODID);
- if (!ModConfig.LoadConfig()) {
- Logger.error(Reference.MODID + " could not load its config file. Things are going to be weird!");
+ if (!configTecTech.LoadConfig()) {
+ LOGGER.error(Reference.MODID + " could not load its config file. Things are going to be weird!");
}
- if (ModConfig.ModAdminErrorLogs_Enabled) {
- Logger.debug("Module_AdminErrorLogs is enabled");
- Module_AdminErrorLogs = new IngameErrorLog();
+ if (configTecTech.modAdminErrorLogs) {
+ LOGGER.setDebugOutput(DEBUG_MODE);
+ LOGGER.debug("moduleAdminErrorLogs is enabled");
+ moduleAdminErrorLogs = new IngameErrorLog();
}
- GTCustomLoader = new MainLoader();
-
- Logger.info("Added Atom Overrider");
+ MainLoader.preLoad();
}
@Mod.EventHandler
public void Load(FMLInitializationEvent event) {
hasCOFH = Loader.isModLoaded(Reference.COFHCORE);
- hasThaumcraft = Loader.isModLoaded(Reference.THAUMCRAFT);
-
- GTCustomLoader.load();
-
- new RotationPacketDispatcher();
- NetworkRegistry.INSTANCE.registerGuiHandler(instance, new ModGuiHandler());
- proxy.registerRenderInfo();
+ MainLoader.load();
}
@Mod.EventHandler
public void PostLoad(FMLPostInitializationEvent PostEvent) {
- GTCustomLoader.postLoad();
- if (ModConfig.NERF_FUSION) {
- FixBrokenFusionRecipes();
- }
- fixBlocks();
+ MainLoader.postLoad();
}
@Mod.EventHandler
public void serverLoad(FMLServerStartingEvent pEvent) {
+ pEvent.registerServerCommand(new ListEM());
if(DEBUG_MODE) {
pEvent.registerServerCommand(new GiveEM());
- pEvent.registerServerCommand(new ListEM());
}
}
@Mod.EventHandler
public void onServerAboutToStart(FMLServerAboutToStartEvent ev) {
- }
- private void FixBrokenFusionRecipes() {
- HashMap<Fluid, Fluid> binds = new HashMap<>();
- for (Materials material : Materials.values()) {
- FluidStack p = material.getPlasma(1);
- if (p != null) {
- if (DEBUG_MODE) {
- Logger.info("Found Plasma of " + material.mName);
- }
- if (material.mElement != null &&
- (material.mElement.mProtons >= Materials.Iron.mElement.mProtons ||
- -material.mElement.mProtons >= Materials.Iron.mElement.mProtons ||
- material.mElement.mNeutrons >= Materials.Iron.mElement.mNeutrons ||
- -material.mElement.mNeutrons >= Materials.Iron.mElement.mNeutrons)) {
- if (DEBUG_MODE) {
- Logger.info("Attempting to bind " + material.mName);
- }
- if (material.getMolten(1) != null) {
- binds.put(p.getFluid(), material.getMolten(1).getFluid());
- } else if (material.getGas(1) != null) {
- binds.put(p.getFluid(), material.getGas(1).getFluid());
- } else if (material.getFluid(1) != null) {
- binds.put(p.getFluid(), material.getFluid(1).getFluid());
- } else {
- binds.put(p.getFluid(), Materials.Iron.getMolten(1).getFluid());
- }
- }
- }
- }
- for (GT_Recipe r : GT_Recipe.GT_Recipe_Map.sFusionRecipes.mRecipeList) {
- Fluid fluid = binds.get(r.mFluidOutputs[0].getFluid());
- if (fluid != null) {
- if (DEBUG_MODE) {
- Logger.info("Nerfing Recipe " + r.mFluidOutputs[0].getUnlocalizedName());
- }
- r.mFluidOutputs[0] = new FluidStack(fluid, r.mFluidInputs[0].amount);
- }
- }
- }
-
- private void fixBlocks(){
- HashSet<String> modIDs=new HashSet<>(Arrays.asList(
- "minecraft",
- "IC2",
- "gregtech",
- "dreamcraft",
- "miscutils",
- "GT++DarkWorld",
- "GalacticraftCore",
- "GalacticraftMars",
- "GalaxySpace",
- "extracells",
- "Avaritia",
- "avaritiaddons",
- "EnderStorage",
- "enhancedportals",
- "DraconicEvolution",
- "IC2NuclearControl",
- "IronChest",
- "opensecurity",
- "openmodularturrets",
- "Railcraft",
- "RIO",
- "SGCraft",
- "appliedenergistics2",
- "thaumicenergistics",
- "witchery",
- "lootgames",
- "utilityworlds",
- Reference.MODID
- ));
- for(Block block : GameData.getBlockRegistry().typeSafeIterable()) {
- GameRegistry.UniqueIdentifier uniqueIdentifier=GameRegistry.findUniqueIdentifierFor(block);
- if (uniqueIdentifier != null) {
- if (modIDs.contains(uniqueIdentifier.modId)) {//Full Whitelisted Mods
- continue;
- } else if ("OpenBlocks".equals(uniqueIdentifier.modId)) {
- if ("grave".equals(uniqueIdentifier.name)) {
- continue;
- }
- } else if ("TwilightForest".equals(uniqueIdentifier.modId)){
- if ("tile.TFShield".equals(uniqueIdentifier.name)){
- block.setResistance(30);
- continue;
- }else if ("tile.TFThorns".equals(uniqueIdentifier.name)){
- block.setResistance(10);
- continue;
- }else if ("tile.TFTowerTranslucent".equals(uniqueIdentifier.name)){
- block.setResistance(30);
- continue;
- }else if ("tile.TFDeadrock".equals(uniqueIdentifier.name)) {
- block.setResistance(5);
- continue;
- } else {
- continue;
- }
- }
- }
- block.setResistance(5);
- }
}
}
diff --git a/src/main/java/com/github/technus/tectech/Util.java b/src/main/java/com/github/technus/tectech/Util.java
index 0bd48ede69..1fd479939c 100644
--- a/src/main/java/com/github/technus/tectech/Util.java
+++ b/src/main/java/com/github/technus/tectech/Util.java
@@ -29,7 +29,7 @@ import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
import static gregtech.api.enums.GT_Values.E;
/**
@@ -176,13 +176,13 @@ public final class Util {
//countable air -> net.minecraft.block.BlockAir
if (world.getBlock(x, y, z) != blockType[pointer]) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Struct-block-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlock(x, y, z).getUnlocalizedName() + ' ' + blockType[pointer].getUnlocalizedName());
+ TecTech.LOGGER.info("Struct-block-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlock(x, y, z).getUnlocalizedName() + ' ' + blockType[pointer].getUnlocalizedName());
}
return false;
}
if (world.getBlockMetadata(x, y, z) != blockMeta[pointer]) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Struct-meta-id-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlockMetadata(x, y, z) + ' ' + blockMeta[pointer]);
+ TecTech.LOGGER.info("Struct-meta-id-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlockMetadata(x, y, z) + ' ' + blockMeta[pointer]);
}
return false;
}
@@ -310,13 +310,13 @@ public final class Util {
//countable air -> net.minecraft.block.BlockAir
if (world.getBlock(x, y, z) != blockType[pointer]) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Struct-block-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlock(x, y, z).getUnlocalizedName() + ' ' + blockType[pointer].getUnlocalizedName());
+ TecTech.LOGGER.info("Struct-block-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlock(x, y, z).getUnlocalizedName() + ' ' + blockType[pointer].getUnlocalizedName());
}
return false;
}
if (world.getBlockMetadata(x, y, z) != blockMeta[pointer]) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Struct-meta-id-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlockMetadata(x, y, z) + ' ' + blockMeta[pointer]);
+ TecTech.LOGGER.info("Struct-meta-id-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlockMetadata(x, y, z) + ' ' + blockMeta[pointer]);
}
return false;
}
@@ -326,13 +326,13 @@ public final class Util {
if (igt == null || !(boolean) adder.invoke(imt, addingMethods[pointer], igt, casingTextures[pointer])) {
if (world.getBlock(x, y, z) != blockTypeFallback[pointer]) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Fallback-struct-block-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlock(x, y, z).getUnlocalizedName() + ' ' + (blockTypeFallback[pointer] == null ? "null" : blockTypeFallback[pointer].getUnlocalizedName()));
+ TecTech.LOGGER.info("Fallback-struct-block-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlock(x, y, z).getUnlocalizedName() + ' ' + (blockTypeFallback[pointer] == null ? "null" : blockTypeFallback[pointer].getUnlocalizedName()));
}
return false;
}
if (world.getBlockMetadata(x, y, z) != blockMetaFallback[pointer]) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Fallback-Struct-meta-id-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlockMetadata(x, y, z) + ' ' + blockMetaFallback[pointer]);
+ TecTech.LOGGER.info("Fallback-Struct-meta-id-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlockMetadata(x, y, z) + ' ' + blockMetaFallback[pointer]);
}
return false;
}
@@ -540,7 +540,7 @@ public final class Util {
break;
default:
if (DEBUG_MODE) {
- TecTech.Logger.info("facing = " + facingAndRotation);
+ TecTech.LOGGER.info("facing = " + facingAndRotation);
}
return false;
}
@@ -568,13 +568,13 @@ public final class Util {
//countable air -> net.minecraft.block.BlockAir
if (world.getBlock(x, y, z) != blockType[pointer]) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Struct-block-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlock(x, y, z).getUnlocalizedName() + ' ' + blockType[pointer].getUnlocalizedName());
+ TecTech.LOGGER.info("Struct-block-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlock(x, y, z).getUnlocalizedName() + ' ' + blockType[pointer].getUnlocalizedName());
}
return false;
}
if (world.getBlockMetadata(x, y, z) != blockMeta[pointer]) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Struct-meta-id-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlockMetadata(x, y, z) + ' ' + blockMeta[pointer]);
+ TecTech.LOGGER.info("Struct-meta-id-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlockMetadata(x, y, z) + ' ' + blockMeta[pointer]);
}
return false;
}
@@ -584,13 +584,13 @@ public final class Util {
if (igt == null || !(boolean) adder.invoke(imt, addingMethods[pointer], igt, casingTextures[pointer])) {
if (world.getBlock(x, y, z) != blockTypeFallback[pointer]) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Fallback-struct-block-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlock(x, y, z).getUnlocalizedName() + ' ' + (blockTypeFallback[pointer] == null ? "null" : blockTypeFallback[pointer].getUnlocalizedName()));
+ TecTech.LOGGER.info("Fallback-struct-block-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlock(x, y, z).getUnlocalizedName() + ' ' + (blockTypeFallback[pointer] == null ? "null" : blockTypeFallback[pointer].getUnlocalizedName()));
}
return false;
}
if (world.getBlockMetadata(x, y, z) != blockMetaFallback[pointer]) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Fallback-Struct-meta-id-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlockMetadata(x, y, z) + ' ' + blockMetaFallback[pointer]);
+ TecTech.LOGGER.info("Fallback-Struct-meta-id-error " + x + ' ' + y + ' ' + z + " / " + a + ' ' + b + ' ' + c + " / " + world.getBlockMetadata(x, y, z) + ' ' + blockMetaFallback[pointer]);
}
return false;
}
@@ -823,7 +823,7 @@ public final class Util {
break;
default:
if (DEBUG_MODE) {
- TecTech.Logger.info("facing = " + facing);
+ TecTech.LOGGER.info("facing = " + facing);
}
return false;
}
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 be731036a9..3f209077e7 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
@@ -20,7 +20,7 @@ import net.minecraftforge.fluids.FluidStack;
import java.lang.reflect.Method;
-import static com.github.technus.tectech.loader.RecipeLoader.getOrDefault;
+import static com.github.technus.tectech.loader.recipe.RecipeLoader.getOrDefault;
/**
* Created by Tec on 06.08.2017.
diff --git a/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/NoDreamCraftBlockLoader.java b/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/NoDreamCraftBlockLoader.java
deleted file mode 100644
index c5c960f5b8..0000000000
--- a/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/NoDreamCraftBlockLoader.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.github.technus.tectech.compatibility.dreamcraft;
-
-import com.github.technus.tectech.thing.casing.GT_Block_CasingsNH;
-import com.github.technus.tectech.thing.casing.TT_Container_Casings;
-
-public class NoDreamCraftBlockLoader implements Runnable {
- @Override
- public void run() {
- TT_Container_Casings.sBlockCasingsNH = new GT_Block_CasingsNH();
- }
-}
diff --git a/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/NoDreamCraftMachineLoader.java b/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/NoDreamCraftMachineLoader.java
index eb4f9c2b9d..18ec3b8b26 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/NoDreamCraftMachineLoader.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/dreamcraft/NoDreamCraftMachineLoader.java
@@ -1,6 +1,8 @@
package com.github.technus.tectech.compatibility.dreamcraft;
+import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.thing.CustomItemList;
import com.github.technus.tectech.thing.metaTileEntity.single.GT_MetaTileEntity_WetTransformer;
import cpw.mods.fml.common.Loader;
@@ -16,6 +18,8 @@ import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
+import static gregtech.api.GregTech_API.METATILEENTITIES;
+
public class NoDreamCraftMachineLoader implements Runnable {
public final static String imagination=EnumChatFormatting.RESET +
"You just need " + EnumChatFormatting.DARK_PURPLE +
@@ -34,9 +38,15 @@ public class NoDreamCraftMachineLoader implements Runnable {
@Override
public void run() {
- CustomItemList.WetTransformer_LV_ULV.set(new GT_MetaTileEntity_WetTransformer(
- 12000, "wettransformer.tier.00", "Ultra Low Voltage Power Transformer", 0,
- "LV -> ULV (Use Soft Mallet to invert)").getStackForm(1L));
+ try {
+ CustomItemList.WetTransformer_LV_ULV.set(new GT_MetaTileEntity_WetTransformer(
+ 12000, "wettransformer.tier.00", "Ultra Low Voltage Power Transformer", 0,
+ "LV -> ULV (Use Soft Mallet to invert)").getStackForm(1L));
+ }catch (IllegalArgumentException e){
+ System.out.println(METATILEENTITIES[12000].getClass().getCanonicalName());
+ TecTech.LOGGER.error(e);
+ e.printStackTrace();
+ }
CustomItemList.WetTransformer_MV_LV.set(new GT_MetaTileEntity_WetTransformer(
12001, "wetransformer.tier.01", "Low Voltage Power Transformer", 1,
@@ -211,7 +221,7 @@ public class NoDreamCraftMachineLoader implements Runnable {
CustomItemList.Transformer_MAXV_OPV.set(temp.getStackForm(1L));
- if (Loader.isModLoaded("miscutils")) {
+ if (Loader.isModLoaded(Reference.GTPLUSPLUS)) {
Class clazz = Class.forName("gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMetaTransformerHiAmp");
Constructor<MetaTileEntity> constructor = clazz.getConstructor(int.class, String.class, String.class, int.class, String.class);
diff --git a/src/main/java/com/github/technus/tectech/compatibility/gtpp/GtppAtomLoader.java b/src/main/java/com/github/technus/tectech/compatibility/gtpp/GtppAtomLoader.java
index 5f0342bf77..a7cb8bb8a0 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/gtpp/GtppAtomLoader.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/gtpp/GtppAtomLoader.java
@@ -1,12 +1,12 @@
package com.github.technus.tectech.compatibility.gtpp;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
import gregtech.api.enums.OrePrefixes;
import net.minecraftforge.fluids.FluidStack;
import java.lang.reflect.Method;
-import static com.github.technus.tectech.elementalMatter.definitions.complex.atom.dAtomDefinition.*;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.dAtomDefinition.*;
public class GtppAtomLoader implements Runnable{
//region reflect a bit
diff --git a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/AspectDefinitionCompatEnabled.java b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/AspectDefinitionCompatEnabled.java
deleted file mode 100644
index 9038e4fe26..0000000000
--- a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/AspectDefinitionCompatEnabled.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package com.github.technus.tectech.compatibility.thaumcraft.definitions;
-
-import com.github.technus.tectech.elementalMatter.core.tElementalException;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
-import thaumcraft.api.aspects.Aspect;
-
-import java.util.ArrayList;
-
-import static com.github.technus.tectech.compatibility.thaumcraft.definitions.ePrimalAspectDefinition.*;
-
-/**
- * Created by Tec on 21.05.2017.
- */
-public final class AspectDefinitionCompatEnabled extends AspectDefinitionCompat {
- @Override
- public void run(){
- AspectDefinitionCompat.defToAspect.put(magic_air,"aer");
- AspectDefinitionCompat.defToAspect.put(magic_earth,"terra");
- AspectDefinitionCompat.defToAspect.put(magic_fire,"ignis");
- AspectDefinitionCompat.defToAspect.put(magic_water,"aqua");
- AspectDefinitionCompat.defToAspect.put(magic_order,"ordo");
- AspectDefinitionCompat.defToAspect.put(magic_entropy,"perditio");
-
- AspectDefinitionCompat.aspectToDef.put("aer",magic_air);
- AspectDefinitionCompat.aspectToDef.put("terra",magic_earth);
- AspectDefinitionCompat.aspectToDef.put("ignis",magic_fire);
- AspectDefinitionCompat.aspectToDef.put("aqua",magic_water);
- AspectDefinitionCompat.aspectToDef.put("ordo",magic_order);
- AspectDefinitionCompat.aspectToDef.put("perditio",magic_entropy);
-
- ArrayList<Aspect> list=Aspect.getCompoundAspects();
- Aspect[] array= list.toArray(new Aspect[list.size()]);
- while (!list.isEmpty()) {
- for (Aspect aspect : array) {
- if (list.contains(aspect)) {
- Aspect[] content = aspect.getComponents();
- if (content.length != 2) {
- list.remove(aspect);
- }else if(AspectDefinitionCompat.aspectToDef.containsKey(content[0].getTag()) && AspectDefinitionCompat.aspectToDef.containsKey(content[1].getTag())){
- try {
- dComplexAspectDefinition newAspect;
- if(content[0].getTag().equals(content[1].getTag())){
- newAspect = new dComplexAspectDefinition(AspectDefinitionCompat.aspectToDef.get(content[0].getTag()).getStackForm(2)
- );
- }else{
- newAspect = new dComplexAspectDefinition(AspectDefinitionCompat.aspectToDef.get(content[0].getTag()).getStackForm(1), AspectDefinitionCompat.aspectToDef.get(content[1].getTag()).getStackForm(1)
- );
- }
- AspectDefinitionCompat.aspectToDef.put(aspect.getTag(),newAspect);
- AspectDefinitionCompat.defToAspect.put(newAspect,aspect.getTag());
- }catch (tElementalException e) {
- /**/
- }finally {
- list.remove(aspect);
- }
- }
- }
- }
- }
- }
-
- @Override
- Aspect getAspect(cElementalDefinition definition) {
- return Aspect.getAspect(AspectDefinitionCompat.defToAspect.get(definition));
- }
-
- @Override
- String getAspectTag(cElementalDefinition definition) {
- return AspectDefinitionCompat.defToAspect.get(definition);
- }
-
- @Override
- iElementalDefinition getDefinition(String aspect) {
- return AspectDefinitionCompat.aspectToDef.get(aspect);
- }
-
-}
diff --git a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/AspectDefinitionCompat.java b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/AspectDefinitionCompat.java
index 8715e33dd8..2d531858d0 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/AspectDefinitionCompat.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/AspectDefinitionCompat.java
@@ -1,8 +1,8 @@
-package com.github.technus.tectech.compatibility.thaumcraft.definitions;
+package com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import java.util.HashMap;
diff --git a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/AspectDefinitionCompatEnabled.java b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/AspectDefinitionCompatEnabled.java
new file mode 100644
index 0000000000..91523326db
--- /dev/null
+++ b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/AspectDefinitionCompatEnabled.java
@@ -0,0 +1,78 @@
+package com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions;
+
+import com.github.technus.tectech.mechanics.elementalMatter.core.tElementalException;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
+import thaumcraft.api.aspects.Aspect;
+
+import java.util.ArrayList;
+
+import static com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions.ePrimalAspectDefinition.*;
+
+/**
+ * Created by Tec on 21.05.2017.
+ */
+public final class AspectDefinitionCompatEnabled extends AspectDefinitionCompat {
+ @Override
+ public void run(){
+ defToAspect.put(magic_air,"aer");
+ defToAspect.put(magic_earth,"terra");
+ defToAspect.put(magic_fire,"ignis");
+ defToAspect.put(magic_water,"aqua");
+ defToAspect.put(magic_order,"ordo");
+ defToAspect.put(magic_entropy,"perditio");
+
+ aspectToDef.put("aer",magic_air);
+ aspectToDef.put("terra",magic_earth);
+ aspectToDef.put("ignis",magic_fire);
+ aspectToDef.put("aqua",magic_water);
+ aspectToDef.put("ordo",magic_order);
+ aspectToDef.put("perditio",magic_entropy);
+
+ ArrayList<Aspect> list=Aspect.getCompoundAspects();
+ Aspect[] array= list.toArray(new Aspect[list.size()]);
+ while (!list.isEmpty()) {
+ for (Aspect aspect : array) {
+ if (list.contains(aspect)) {
+ Aspect[] content = aspect.getComponents();
+ if (content.length != 2) {
+ list.remove(aspect);
+ }else if(aspectToDef.containsKey(content[0].getTag()) && aspectToDef.containsKey(content[1].getTag())){
+ try {
+ dComplexAspectDefinition newAspect;
+ if(content[0].getTag().equals(content[1].getTag())){
+ newAspect = new dComplexAspectDefinition(aspectToDef.get(content[0].getTag()).getStackForm(2)
+ );
+ }else{
+ newAspect = new dComplexAspectDefinition(aspectToDef.get(content[0].getTag()).getStackForm(1), aspectToDef.get(content[1].getTag()).getStackForm(1)
+ );
+ }
+ aspectToDef.put(aspect.getTag(),newAspect);
+ defToAspect.put(newAspect,aspect.getTag());
+ }catch (tElementalException e) {
+ /**/
+ }finally {
+ list.remove(aspect);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ @Override
+ Aspect getAspect(cElementalDefinition definition) {
+ return Aspect.getAspect(defToAspect.get(definition));
+ }
+
+ @Override
+ String getAspectTag(cElementalDefinition definition) {
+ return defToAspect.get(definition);
+ }
+
+ @Override
+ iElementalDefinition getDefinition(String aspect) {
+ return aspectToDef.get(aspect);
+ }
+
+}
diff --git a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/dComplexAspectDefinition.java b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/dComplexAspectDefinition.java
index 6e57ffd788..433a3a2697 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/dComplexAspectDefinition.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/dComplexAspectDefinition.java
@@ -1,24 +1,23 @@
-package com.github.technus.tectech.compatibility.thaumcraft.definitions;
+package com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.elementalMatter.core.cElementalDecay;
-import com.github.technus.tectech.elementalMatter.core.cElementalDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.tElementalException;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.transformations.aFluidDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.aItemDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.aOredictDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.definitions.primitive.eBosonDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.tElementalException;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aFluidDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aItemDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aOredictDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eBosonDefinition;
import net.minecraft.nbt.NBTTagCompound;
import java.util.ArrayList;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
-import static com.github.technus.tectech.compatibility.thaumcraft.definitions.AspectDefinitionCompat.aspectDefinitionCompat;
-import static com.github.technus.tectech.elementalMatter.core.cElementalDecay.noDecay;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay.noDecay;
import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.*;
/**
@@ -81,7 +80,7 @@ public final class dComplexAspectDefinition extends cElementalDefinition impleme
@Override
public String getName() {
- String name= aspectDefinitionCompat.getAspectTag(this);
+ String name= AspectDefinitionCompat.aspectDefinitionCompat.getAspectTag(this);
if(name!=null){
name=name.substring(0,1).toUpperCase()+name.substring(1);
}else{
@@ -223,7 +222,7 @@ public final class dComplexAspectDefinition extends cElementalDefinition impleme
@Override
public Object materializeIntoAspect() {
- return aspectDefinitionCompat.getAspect(this);
+ return AspectDefinitionCompat.aspectDefinitionCompat.getAspect(this);
}
@Override
@@ -240,7 +239,7 @@ public final class dComplexAspectDefinition extends cElementalDefinition impleme
}
}
if(DEBUG_MODE) {
- TecTech.Logger.info("Registered Elemental Matter Class: ComplexAspect " + nbtType + ' ' + -96);
+ TecTech.LOGGER.info("Registered Elemental Matter Class: ComplexAspect " + nbtType + ' ' + -96);
}
}
diff --git a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/ePrimalAspectDefinition.java b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/ePrimalAspectDefinition.java
index 64c1b7ea19..5f3f01d4cb 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/ePrimalAspectDefinition.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/ePrimalAspectDefinition.java
@@ -1,9 +1,8 @@
-package com.github.technus.tectech.compatibility.thaumcraft.definitions;
+package com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalPrimitive;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalPrimitive;
-import static com.github.technus.tectech.compatibility.thaumcraft.definitions.AspectDefinitionCompat.aspectDefinitionCompat;
-import static com.github.technus.tectech.elementalMatter.core.cElementalDecay.noDecay;
+import static com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay.noDecay;
/**
* Created by Tec on 06.05.2017.
@@ -37,7 +36,7 @@ public final class ePrimalAspectDefinition extends cElementalPrimitive implement
@Override
public Object materializeIntoAspect() {
- return aspectDefinitionCompat.getAspect(this);
+ return AspectDefinitionCompat.aspectDefinitionCompat.getAspect(this);
}
@Override
diff --git a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/iElementalAspect.java b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/iElementalAspect.java
index 0f96d3d4be..3cb2d8e5e8 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/iElementalAspect.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/elementalMatter/definitions/iElementalAspect.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.compatibility.thaumcraft.definitions;
+package com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions;
/**
* Created by Tec on 21.05.2017.
diff --git a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/EssentiaCompat.java b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/EssentiaCompat.java
index fba6f1e6e9..e77cab2734 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/EssentiaCompat.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/EssentiaCompat.java
@@ -1,6 +1,6 @@
-package com.github.technus.tectech.compatibility.thaumcraft;
+package com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity.multi;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_MetaTileEntity_MultiblockBase_EM;
import net.minecraft.tileentity.TileEntity;
@@ -10,8 +10,6 @@ import net.minecraft.tileentity.TileEntity;
public class EssentiaCompat {
public static EssentiaCompat essentiaContainerCompat;
- public void run(){}
-
public boolean check(GT_MetaTileEntity_MultiblockBase_EM meta){
return false;
}
diff --git a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/EssentiaCompatEnabled.java b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/EssentiaCompatEnabled.java
index 15efa593eb..484377b179 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/EssentiaCompatEnabled.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/EssentiaCompatEnabled.java
@@ -1,8 +1,8 @@
-package com.github.technus.tectech.compatibility.thaumcraft;
+package com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity.multi;
-import com.github.technus.tectech.compatibility.thaumcraft.definitions.iElementalAspect;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions.iElementalAspect;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_MetaTileEntity_MultiblockBase_EM;
import net.minecraft.tileentity.TileEntity;
import thaumcraft.api.aspects.Aspect;
@@ -11,18 +11,13 @@ import thaumcraft.api.aspects.IAspectContainer;
import thaumcraft.common.tiles.TileEssentiaReservoir;
import thaumcraft.common.tiles.TileJarFillable;
-import static com.github.technus.tectech.compatibility.thaumcraft.definitions.AspectDefinitionCompat.aspectToDef;
+import static com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions.AspectDefinitionCompat.aspectToDef;
/**
* Created by Tec on 21.05.2017.
*/
public class EssentiaCompatEnabled extends EssentiaCompat {
@Override
- public void run() {
-
- }
-
- @Override
public boolean check(GT_MetaTileEntity_MultiblockBase_EM meta) {
TileEntity tile =meta.getBaseMetaTileEntity().getTileEntityAtSide(meta.getBaseMetaTileEntity().getBackFacing());
return tile instanceof TileEssentiaReservoir || tile instanceof TileJarFillable;
diff --git a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_essentiaDequantizer.java b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_essentiaDequantizer.java
index bcd5358281..981dc7f375 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_essentiaDequantizer.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_essentiaDequantizer.java
@@ -2,9 +2,9 @@ package com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.compatibility.thaumcraft.definitions.ePrimalAspectDefinition;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions.ePrimalAspectDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
import com.github.technus.tectech.thing.block.QuantumGlassBlock;
import com.github.technus.tectech.thing.casing.TT_Container_Casings;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
@@ -24,7 +24,7 @@ import net.minecraftforge.common.util.ForgeDirection;
import static com.github.technus.tectech.Util.StructureBuilderExtreme;
import static com.github.technus.tectech.CommonValues.V;
-import static com.github.technus.tectech.compatibility.thaumcraft.EssentiaCompat.essentiaContainerCompat;
+import static com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity.multi.EssentiaCompat.essentiaContainerCompat;
import static com.github.technus.tectech.thing.casing.GT_Block_CasingsTT.textureOffset;
import static com.github.technus.tectech.thing.casing.TT_Container_Casings.sBlockCasingsTT;
import static gregtech.api.enums.GT_Values.E;
diff --git a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_essentiaQuantizer.java b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_essentiaQuantizer.java
index 07e3c31db6..67f99316b4 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_essentiaQuantizer.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/thaumcraft/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_essentiaQuantizer.java
@@ -2,9 +2,9 @@ package com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.compatibility.thaumcraft.definitions.ePrimalAspectDefinition;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions.ePrimalAspectDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
import com.github.technus.tectech.thing.block.QuantumGlassBlock;
import com.github.technus.tectech.thing.casing.TT_Container_Casings;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
@@ -24,7 +24,7 @@ import net.minecraftforge.common.util.ForgeDirection;
import static com.github.technus.tectech.Util.StructureBuilderExtreme;
import static com.github.technus.tectech.CommonValues.V;
-import static com.github.technus.tectech.compatibility.thaumcraft.EssentiaCompat.essentiaContainerCompat;
+import static com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity.multi.EssentiaCompat.essentiaContainerCompat;
import static com.github.technus.tectech.thing.casing.GT_Block_CasingsTT.textureOffset;
import static com.github.technus.tectech.thing.casing.TT_Container_Casings.sBlockCasingsTT;
import static gregtech.api.enums.GT_Values.E;
diff --git a/src/main/java/com/github/technus/tectech/entity/fx/BlockHint.java b/src/main/java/com/github/technus/tectech/entity/fx/BlockHint.java
index 6fa5b552e5..ab075f7ffd 100644
--- a/src/main/java/com/github/technus/tectech/entity/fx/BlockHint.java
+++ b/src/main/java/com/github/technus/tectech/entity/fx/BlockHint.java
@@ -26,7 +26,7 @@ public class BlockHint extends EntityFX {
prevPosY = posY;
prevPosZ = posZ;
noClip = true;
- particleMaxAge = 2000 + TecTech.Rnd.nextInt(200);
+ particleMaxAge = 2000 + TecTech.RANDOM.nextInt(200);
for (int i = 0; i < 6; i++) {
icons[i] = block.getIcon(i, meta);
}
diff --git a/src/main/java/com/github/technus/tectech/loader/MainLoader.java b/src/main/java/com/github/technus/tectech/loader/MainLoader.java
index 2e715d7b9c..ba84df070a 100644
--- a/src/main/java/com/github/technus/tectech/loader/MainLoader.java
+++ b/src/main/java/com/github/technus/tectech/loader/MainLoader.java
@@ -1,79 +1,146 @@
package com.github.technus.tectech.loader;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.compatibility.thaumcraft.EssentiaCompat;
-import com.github.technus.tectech.compatibility.thaumcraft.EssentiaCompatEnabled;
-import com.github.technus.tectech.compatibility.thaumcraft.definitions.AspectDefinitionCompat;
-import com.github.technus.tectech.compatibility.thaumcraft.definitions.AspectDefinitionCompatEnabled;
-import com.github.technus.tectech.thing.CustomItemList;
-import com.github.technus.tectech.thing.block.QuantumGlassBlock;
+import com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions.AspectDefinitionCompat;
+import com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions.AspectDefinitionCompatEnabled;
+import com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity.multi.EssentiaCompat;
+import com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity.multi.EssentiaCompatEnabled;
+import com.github.technus.tectech.loader.entity.EntityLoader;
+import com.github.technus.tectech.loader.gui.CreativeTabTecTech;
+import com.github.technus.tectech.loader.gui.ModGuiHandler;
+import com.github.technus.tectech.loader.mechanics.ElementalLoader;
+import com.github.technus.tectech.loader.recipe.RecipeLoader;
+import com.github.technus.tectech.loader.thing.MachineLoader;
+import com.github.technus.tectech.loader.thing.ThingsLoader;
import com.github.technus.tectech.thing.casing.TT_Container_Casings;
-import com.github.technus.tectech.thing.item.ConstructableTriggerItem;
-import com.github.technus.tectech.thing.item.DebugElementalInstanceContainer_EM;
-import com.github.technus.tectech.thing.item.ElementalDefinitionScanStorage_EM;
-import com.github.technus.tectech.thing.item.ParametrizerMemoryCard;
+import com.github.technus.tectech.thing.metaTileEntity.Textures;
+import com.github.technus.tectech.thing.metaTileEntity.multi.base.network.RotationPacketDispatcher;
+import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.ProgressManager;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
+import cpw.mods.fml.common.network.NetworkRegistry;
+import cpw.mods.fml.common.registry.GameData;
+import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.GregTech_API;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.Materials;
import gregtech.api.util.GT_ModHandler;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.item.Item;
+import gregtech.api.util.GT_Recipe;
+import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.util.DamageSource;
-
-import java.util.List;
-
-import static com.github.technus.tectech.TecTech.hasThaumcraft;
-import static com.github.technus.tectech.TecTech.mainTab;
-import static com.github.technus.tectech.compatibility.thaumcraft.EssentiaCompat.essentiaContainerCompat;
-import static com.github.technus.tectech.compatibility.thaumcraft.definitions.AspectDefinitionCompat.aspectDefinitionCompat;
+import net.minecraftforge.fluids.Fluid;
+import net.minecraftforge.fluids.FluidStack;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.HashSet;
+
+import static com.github.technus.tectech.CommonValues.*;
+import static com.github.technus.tectech.TecTech.*;
+import static com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions.AspectDefinitionCompat.aspectDefinitionCompat;
+import static com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity.multi.EssentiaCompat.essentiaContainerCompat;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.loader.gui.CreativeTabTecTech.creativeTabTecTech;
+import static gregtech.api.enums.Dyes.*;
import static gregtech.api.enums.GT_Values.W;
public final class MainLoader {
public static DamageSource microwaving, elementalPollution;
- public void load() {
- ProgressManager.ProgressBar progressBarLoad = ProgressManager.push("TecTech Loader", 6);
+ private MainLoader(){}
+
+ public static void staticLoad(){
+ for(int i=0;i<16;i++){
+ GT_Values.V[i]=V[i];
+ GT_Values.VN[i]=VN[i];
+ GT_Values.VOLTAGE_NAMES[i]=VOLTAGE_NAMES[i];
+ }
+ }
+
+ public static void preLoad(){
+ //Set proper values in gt arrays
+ dyeLightBlue.mRGBa[0]=96;
+ dyeLightBlue.mRGBa[1]=128;
+ dyeLightBlue.mRGBa[2]=255;
+ dyeBlue.mRGBa[0]=0;
+ dyeBlue.mRGBa[1]=32;
+ dyeBlue.mRGBa[2]=255;
+ MACHINE_METAL.mRGBa[0]=210;
+ MACHINE_METAL.mRGBa[1]=220;
+ MACHINE_METAL.mRGBa[2]=255;
+
+ //set expanded texture arrays for tiers
+ try {
+ new Textures();
+ }catch (Throwable t){
+ LOGGER.error("Loading textures...",t);
+ }
+ }
+
+ public static void load() {
+ ProgressManager.ProgressBar progressBarLoad = ProgressManager.push("TecTech Loader", 8);
progressBarLoad.step("Elemental Things");
new ElementalLoader().run();
- TecTech.Logger.info("Elemental Init Done");
+ LOGGER.info("Elemental Init Done");
progressBarLoad.step("Thaumcraft Compatibility");
- if (hasThaumcraft) {
+ if (Loader.isModLoaded(Reference.THAUMCRAFT)) {
essentiaContainerCompat = new EssentiaCompatEnabled();
- essentiaContainerCompat.run();
} else {
essentiaContainerCompat = new EssentiaCompat();
}
- TecTech.Logger.info("Thaumcraft Compatibility Done");
+ LOGGER.info("Thaumcraft Compatibility Done");
progressBarLoad.step("Regular Things");
new ThingsLoader().run();
- TecTech.Logger.info("Block/Item Init Done");
+ LOGGER.info("Block/Item Init Done");
progressBarLoad.step("Machine Things");
new MachineLoader().run();
- TecTech.Logger.info("Machine Init Done");
+ LOGGER.info("Machine Init Done");
progressBarLoad.step("Register entities");
new EntityLoader().run();
- TecTech.Logger.info("Entities registered");
+ LOGGER.info("Entities registered");
progressBarLoad.step("Add damage types");
microwaving =new DamageSource("microwaving").setDamageBypassesArmor();
elementalPollution =new DamageSource("elementalPollution").setDamageBypassesArmor();
- TecTech.Logger.info("Damage types addition Done");
+ LOGGER.info("Damage types addition Done");
+
+ progressBarLoad.step("Register Packet Dispatcher");
+ new RotationPacketDispatcher();
+ LOGGER.info("Packet Dispatcher registered");
+
+ progressBarLoad.step("Register GUI Handler");
+ NetworkRegistry.INSTANCE.registerGuiHandler(instance, new ModGuiHandler());
+ proxy.registerRenderInfo();
+ LOGGER.info("GUI Handler registered");
ProgressManager.pop(progressBarLoad);
}
- public void postLoad() {
- ProgressManager.ProgressBar progressBarPostLoad = ProgressManager.push("TecTech Post Loader", 5);
+ public static void postLoad() {
+ ProgressManager.ProgressBar progressBarPostLoad = ProgressManager.push("TecTech Post Loader", 7);
+
+ progressBarPostLoad.step("Dreamcraft Compatibility");
+ if(!Loader.isModLoaded(Reference.DREAMCRAFT)){
+ try {
+ Class clazz = Class.forName("com.dreammaster.gthandler.casings.GT_Container_CasingsNH");
+ TT_Container_Casings.sBlockCasingsNH = (Block)clazz.getField("sBlockCasingsNH").get(null);
+
+ if(TT_Container_Casings.sBlockCasingsNH==null){
+ throw new NullPointerException("sBlockCasingsNH Is not set at this time");
+ }
+ }catch (Exception e){
+ throw new Error("Unable to get NH casings",e);
+ }
+ }
progressBarPostLoad.step("Thaumcraft Compatibility");
- if (hasThaumcraft) {
+ if (Loader.isModLoaded(Reference.THAUMCRAFT)) {
aspectDefinitionCompat = new AspectDefinitionCompatEnabled();
aspectDefinitionCompat.run();
} else {
@@ -83,32 +150,31 @@ public final class MainLoader {
progressBarPostLoad.step("Recipes");
new RecipeLoader().run();
- TecTech.Logger.info("Recipe Init Done");
+ TecTech.LOGGER.info("Recipe Init Done");
- progressBarPostLoad.step("Creative Tab part1");
- mainTab = new MyCreativeTab();
- progressBarPostLoad.step("Creative Tab part2");
- registerThingsInTabs();
- TecTech.Logger.info("CreativeTab initiation complete");
+ progressBarPostLoad.step("Creative Tab");
+ creativeTabTecTech =new CreativeTabTecTech("TecTech");
+ TecTech.LOGGER.info("CreativeTab initiation complete");
progressBarPostLoad.step("Register Extra Hazmat Suits");
registerExtraHazmats();
- TecTech.Logger.info("Hazmat additions done");
+ TecTech.LOGGER.info("Hazmat additions done");
- ProgressManager.pop(progressBarPostLoad);
- }
- private void registerThingsInTabs() {
- QuantumGlassBlock.INSTANCE.setCreativeTab(mainTab);
- TT_Container_Casings.sBlockCasingsTT.setCreativeTab(mainTab);
- TT_Container_Casings.sHintCasingsTT.setCreativeTab(mainTab);
- DebugElementalInstanceContainer_EM.INSTANCE.setCreativeTab(mainTab);
- ConstructableTriggerItem.INSTANCE.setCreativeTab(mainTab);
- ParametrizerMemoryCard.INSTANCE.setCreativeTab(mainTab);
- ElementalDefinitionScanStorage_EM.INSTANCE.setCreativeTab(mainTab);
+ progressBarPostLoad.step("Nerf fusion recipes");
+ if (TecTech.configTecTech.NERF_FUSION) {
+ FixBrokenFusionRecipes();
+ }
+ TecTech.LOGGER.info("Fusion nerf done");
+
+ progressBarPostLoad.step("Nerf blocks blast resistance");
+ fixBlocks();
+ TecTech.LOGGER.info("Blocks nerf done");
+
+ ProgressManager.pop(progressBarPostLoad);
}
- private void registerExtraHazmats() {
+ private static void registerExtraHazmats() {
ItemStack EMT_iqC=GT_ModHandler.getModItem("EMT","itemArmorQuantumChestplate",1,W);
ItemStack GRAVI_gC=GT_ModHandler.getModItem("GraviSuite","graviChestPlate",1,W);
ItemStack GRAVI_anC=GT_ModHandler.getModItem("GraviSuite", "advNanoChestPlate", 1, W);
@@ -180,23 +246,104 @@ public final class MainLoader {
//todo add GC GS stuff
}
- private static final class MyCreativeTab extends CreativeTabs {
- private MyCreativeTab() {super("TecTech");}
-
- @SideOnly(Side.CLIENT)
- @Override
- public Item getTabIconItem() {
- return DebugElementalInstanceContainer_EM.INSTANCE;
+ private static void FixBrokenFusionRecipes() {
+ HashMap<Fluid, Fluid> binds = new HashMap<>();
+ for (Materials material : Materials.values()) {
+ FluidStack p = material.getPlasma(1);
+ if (p != null) {
+ if (DEBUG_MODE) {
+ LOGGER.info("Found Plasma of " + material.mName);
+ }
+ if (material.mElement != null &&
+ (material.mElement.mProtons >= Materials.Iron.mElement.mProtons ||
+ -material.mElement.mProtons >= Materials.Iron.mElement.mProtons ||
+ material.mElement.mNeutrons >= Materials.Iron.mElement.mNeutrons ||
+ -material.mElement.mNeutrons >= Materials.Iron.mElement.mNeutrons)) {
+ if (DEBUG_MODE) {
+ LOGGER.info("Attempting to bind " + material.mName);
+ }
+ if (material.getMolten(1) != null) {
+ binds.put(p.getFluid(), material.getMolten(1).getFluid());
+ } else if (material.getGas(1) != null) {
+ binds.put(p.getFluid(), material.getGas(1).getFluid());
+ } else if (material.getFluid(1) != null) {
+ binds.put(p.getFluid(), material.getFluid(1).getFluid());
+ } else {
+ binds.put(p.getFluid(), Materials.Iron.getMolten(1).getFluid());
+ }
+ }
+ }
}
+ for (GT_Recipe r : GT_Recipe.GT_Recipe_Map.sFusionRecipes.mRecipeList) {
+ Fluid fluid = binds.get(r.mFluidOutputs[0].getFluid());
+ if (fluid != null) {
+ if (DEBUG_MODE) {
+ LOGGER.info("Nerfing Recipe " + r.mFluidOutputs[0].getUnlocalizedName());
+ }
+ r.mFluidOutputs[0] = new FluidStack(fluid, r.mFluidInputs[0].amount);
+ }
+ }
+ }
- @Override
- public void displayAllReleventItems(List stuffToShow) {
- for(CustomItemList item: CustomItemList.values()){
- if (item.hasBeenSet() && item.getBlock() == GregTech_API.sBlockMachines) {
- stuffToShow.add(item.get(1));
+ private static void fixBlocks(){
+ HashSet<String> modIDs=new HashSet<>(Arrays.asList(
+ "minecraft",
+ "IC2",
+ "gregtech",
+ Reference.DREAMCRAFT,
+ Reference.GTPLUSPLUS,
+ "GT++DarkWorld",
+ "GalacticraftCore",
+ "GalacticraftMars",
+ "GalaxySpace",
+ "extracells",
+ "Avaritia",
+ "avaritiaddons",
+ "EnderStorage",
+ "enhancedportals",
+ "DraconicEvolution",
+ "IC2NuclearControl",
+ "IronChest",
+ "opensecurity",
+ "openmodularturrets",
+ "Railcraft",
+ "RIO",
+ "SGCraft",
+ "appliedenergistics2",
+ "thaumicenergistics",
+ "witchery",
+ "lootgames",
+ "utilityworlds",
+ Reference.MODID
+ ));
+ for(Block block : GameData.getBlockRegistry().typeSafeIterable()) {
+ GameRegistry.UniqueIdentifier uniqueIdentifier=GameRegistry.findUniqueIdentifierFor(block);
+ if (uniqueIdentifier != null) {
+ if (modIDs.contains(uniqueIdentifier.modId)) {//Full Whitelisted Mods
+ continue;
+ } else if ("OpenBlocks".equals(uniqueIdentifier.modId)) {
+ if ("grave".equals(uniqueIdentifier.name)) {
+ continue;
+ }
+ } else if ("TwilightForest".equals(uniqueIdentifier.modId)){
+ if ("tile.TFShield".equals(uniqueIdentifier.name)){
+ block.setResistance(30);
+ continue;
+ }else if ("tile.TFThorns".equals(uniqueIdentifier.name)){
+ block.setResistance(10);
+ continue;
+ }else if ("tile.TFTowerTranslucent".equals(uniqueIdentifier.name)){
+ block.setResistance(30);
+ continue;
+ }else if ("tile.TFDeadrock".equals(uniqueIdentifier.name)) {
+ block.setResistance(5);
+ continue;
+ } else {
+ continue;
+ }
}
}
- super.displayAllReleventItems(stuffToShow);
+ block.setResistance(5);
}
}
}
diff --git a/src/main/java/com/github/technus/tectech/auxiliary/TecTechConfig.java b/src/main/java/com/github/technus/tectech/loader/TecTechConfig.java
index f5963a070c..468a0c909a 100644
--- a/src/main/java/com/github/technus/tectech/auxiliary/TecTechConfig.java
+++ b/src/main/java/com/github/technus/tectech/loader/TecTechConfig.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.auxiliary;
+package com.github.technus.tectech.loader;
import eu.usrv.yamcore.config.ConfigManager;
@@ -9,7 +9,7 @@ public class TecTechConfig extends ConfigManager {
super(pConfigBaseDirectory, pModCollectionDirectory, pModID);
}
- public boolean ModAdminErrorLogs_Enabled;
+ public boolean modAdminErrorLogs;
//final static to allow compiler to remove the debug code when this is false
public static boolean DEBUG_MODE = false;
@@ -20,9 +20,12 @@ public class TecTechConfig extends ConfigManager {
public float TURRET_DAMAGE_FACTOR;
public float TURRET_EXPLOSION_FACTOR;
+ /**
+ * This loading phases do not correspond to mod loading phases!
+ */
@Override
protected void PreInit() {
- ModAdminErrorLogs_Enabled = false;
+ modAdminErrorLogs = false;
EASY_SCAN = false;
BOOM_ENABLE = true;
NERF_FUSION = false;
@@ -31,9 +34,13 @@ public class TecTechConfig extends ConfigManager {
TURRET_EXPLOSION_FACTOR = 1;
}
+
+ /**
+ * This loading phases do not correspond to mod loading phases!
+ */
@Override
protected void Init() {
- ModAdminErrorLogs_Enabled = _mainConfig.getBoolean("AdminErrorLog", "Modules", ModAdminErrorLogs_Enabled,
+ modAdminErrorLogs = _mainConfig.getBoolean("AdminErrorLog", "Modules", modAdminErrorLogs,
"If set to true, every op/admin will receive all errors occurred during the startup phase as in game message on join");
DEBUG_MODE = _mainConfig.getBoolean("DebugMode", "Debug", DEBUG_MODE,
"Enables logging and other purely debug features");
@@ -51,6 +58,9 @@ public class TecTechConfig extends ConfigManager {
"Explosion strength is multiplied by this number");
}
+ /**
+ * This loading phases do not correspond to mod loading phases!
+ */
@Override
protected void PostInit() {
diff --git a/src/main/java/com/github/technus/tectech/loader/EntityLoader.java b/src/main/java/com/github/technus/tectech/loader/entity/EntityLoader.java
index 5769a5d5d2..d2d6332ef3 100644
--- a/src/main/java/com/github/technus/tectech/loader/EntityLoader.java
+++ b/src/main/java/com/github/technus/tectech/loader/entity/EntityLoader.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.loader;
+package com.github.technus.tectech.loader.entity;
import com.github.technus.tectech.TecTech;
import cpw.mods.fml.common.Loader;
diff --git a/src/main/java/com/github/technus/tectech/loader/gui/CreativeTabTecTech.java b/src/main/java/com/github/technus/tectech/loader/gui/CreativeTabTecTech.java
new file mode 100644
index 0000000000..295e1aeb7d
--- /dev/null
+++ b/src/main/java/com/github/technus/tectech/loader/gui/CreativeTabTecTech.java
@@ -0,0 +1,51 @@
+package com.github.technus.tectech.loader.gui;
+
+import com.github.technus.tectech.thing.CustomItemList;
+import com.github.technus.tectech.thing.block.QuantumGlassBlock;
+import com.github.technus.tectech.thing.casing.TT_Container_Casings;
+import com.github.technus.tectech.thing.item.ConstructableTriggerItem;
+import com.github.technus.tectech.thing.item.DebugElementalInstanceContainer_EM;
+import com.github.technus.tectech.thing.item.ElementalDefinitionScanStorage_EM;
+import com.github.technus.tectech.thing.item.ParametrizerMemoryCard;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.GregTech_API;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
+
+import java.util.List;
+
+public class CreativeTabTecTech extends CreativeTabs {
+ public static CreativeTabTecTech creativeTabTecTech;
+
+ public CreativeTabTecTech(String name) {
+ super(name);
+ registerThingsInTabs();
+ }
+
+ @SideOnly(Side.CLIENT)
+ @Override
+ public Item getTabIconItem() {
+ return DebugElementalInstanceContainer_EM.INSTANCE;
+ }
+
+ @Override
+ public void displayAllReleventItems(List stuffToShow) {
+ for(CustomItemList item: CustomItemList.values()){
+ if (item.hasBeenSet() && item.getBlock() == GregTech_API.sBlockMachines) {
+ stuffToShow.add(item.get(1));
+ }
+ }
+ super.displayAllReleventItems(stuffToShow);
+ }
+
+ private static void registerThingsInTabs() {
+ QuantumGlassBlock.INSTANCE.setCreativeTab(creativeTabTecTech);
+ TT_Container_Casings.sBlockCasingsTT.setCreativeTab(creativeTabTecTech);
+ TT_Container_Casings.sHintCasingsTT.setCreativeTab(creativeTabTecTech);
+ DebugElementalInstanceContainer_EM.INSTANCE.setCreativeTab(creativeTabTecTech);
+ ConstructableTriggerItem.INSTANCE.setCreativeTab(creativeTabTecTech);
+ ParametrizerMemoryCard.INSTANCE.setCreativeTab(creativeTabTecTech);
+ ElementalDefinitionScanStorage_EM.INSTANCE.setCreativeTab(creativeTabTecTech);
+ }
+}
diff --git a/src/main/java/com/github/technus/tectech/loader/ModGuiHandler.java b/src/main/java/com/github/technus/tectech/loader/gui/ModGuiHandler.java
index 5a3ca7a877..e3314fccd9 100644
--- a/src/main/java/com/github/technus/tectech/loader/ModGuiHandler.java
+++ b/src/main/java/com/github/technus/tectech/loader/gui/ModGuiHandler.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.loader;
+package com.github.technus.tectech.loader.gui;
import com.github.technus.tectech.thing.item.gui.ScanDisplayScreen;
import cpw.mods.fml.common.network.IGuiHandler;
diff --git a/src/main/java/com/github/technus/tectech/loader/ElementalLoader.java b/src/main/java/com/github/technus/tectech/loader/mechanics/ElementalLoader.java
index ec321fd3b8..a2ea8c60de 100644
--- a/src/main/java/com/github/technus/tectech/loader/ElementalLoader.java
+++ b/src/main/java/com/github/technus/tectech/loader/mechanics/ElementalLoader.java
@@ -1,12 +1,12 @@
-package com.github.technus.tectech.loader;
-
-import com.github.technus.tectech.compatibility.thaumcraft.definitions.dComplexAspectDefinition;
-import com.github.technus.tectech.compatibility.thaumcraft.definitions.ePrimalAspectDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalPrimitive;
-import com.github.technus.tectech.elementalMatter.definitions.complex.atom.dAtomDefinition;
-import com.github.technus.tectech.elementalMatter.definitions.complex.atom.iaeaNuclide;
-import com.github.technus.tectech.elementalMatter.definitions.complex.hadron.dHadronDefinition;
-import com.github.technus.tectech.elementalMatter.definitions.primitive.*;
+package com.github.technus.tectech.loader.mechanics;
+
+import com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions.dComplexAspectDefinition;
+import com.github.technus.tectech.compatibility.thaumcraft.elementalMatter.definitions.ePrimalAspectDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalPrimitive;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.dAtomDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.iaeaNuclide;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.hadron.dHadronDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.*;
/**
* Created by danie_000 on 16.11.2016.
diff --git a/src/main/java/com/github/technus/tectech/loader/BloodyRecipeLoader.java b/src/main/java/com/github/technus/tectech/loader/recipe/BloodyRecipeLoader.java
index 66b0d7ffa3..7999b719e1 100644
--- a/src/main/java/com/github/technus/tectech/loader/BloodyRecipeLoader.java
+++ b/src/main/java/com/github/technus/tectech/loader/recipe/BloodyRecipeLoader.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.loader;
+package com.github.technus.tectech.loader.recipe;
import com.github.technus.tectech.recipe.TT_recipeAdder;
import com.github.technus.tectech.thing.CustomItemList;
@@ -547,7 +547,7 @@ public class BloodyRecipeLoader implements Runnable {
//endregion
//ha trafos
- //if(Loader.isModLoaded("miscutils")){
+ //if(Loader.isModLoaded(Reference.GTPLUSPLUS)){
// GT_Values.RA.addAssemblerRecipe(CustomItemList.HA)
//}
diff --git a/src/main/java/com/github/technus/tectech/loader/RecipeLoader.java b/src/main/java/com/github/technus/tectech/loader/recipe/RecipeLoader.java
index ce27472404..56f461eeb5 100644
--- a/src/main/java/com/github/technus/tectech/loader/RecipeLoader.java
+++ b/src/main/java/com/github/technus/tectech/loader/recipe/RecipeLoader.java
@@ -1,15 +1,19 @@
-package com.github.technus.tectech.loader;
+package com.github.technus.tectech.loader.recipe;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.compatibility.dreamcraft.DreamCraftRecipeLoader;
-import com.github.technus.tectech.elementalMatter.definitions.complex.atom.dAtomDefinition;
-import com.github.technus.tectech.elementalMatter.definitions.complex.hadron.dHadronDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.dAtomDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.hadron.dHadronDefinition;
import com.github.technus.tectech.thing.CustomItemList;
import com.github.technus.tectech.thing.casing.TT_Container_Casings;
import com.github.technus.tectech.thing.item.ConstructableTriggerItem;
import com.github.technus.tectech.thing.item.EuMeterGT;
import com.github.technus.tectech.thing.item.FrontRotationTriggerItem;
import cpw.mods.fml.common.Loader;
-import gregtech.api.enums.*;
+import gregtech.api.enums.Dyes;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Utility;
@@ -104,7 +108,7 @@ public class RecipeLoader implements Runnable {
RA.addAssemblerRecipe(ItemList.Hatch_DataAccess_EV.get(1), CustomItemList.dataIn_Hatch.get(1), CustomItemList.dataInAss_Hatch.get(1), 2048, 12000);
RA.addAssemblerRecipe(ItemList.Hatch_DataAccess_EV.get(1), CustomItemList.dataOut_Hatch.get(1), CustomItemList.dataOutAss_Hatch.get(1), 2048, 12000);
- if (Loader.isModLoaded("dreamcraft")) {
+ if (Loader.isModLoaded(Reference.DREAMCRAFT)) {
new DreamCraftRecipeLoader().run();//init recipes for GTNH version
} else {
new BloodyRecipeLoader().run();//init recipes for NON-GTNH version
diff --git a/src/main/java/com/github/technus/tectech/loader/MachineLoader.java b/src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java
index 845c1ade65..1e85b363e5 100644
--- a/src/main/java/com/github/technus/tectech/loader/MachineLoader.java
+++ b/src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java
@@ -1,5 +1,6 @@
-package com.github.technus.tectech.loader;
+package com.github.technus.tectech.loader.thing;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.compatibility.dreamcraft.NoDreamCraftMachineLoader;
import com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_essentiaDequantizer;
import com.github.technus.tectech.compatibility.thaumcraft.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_essentiaQuantizer;
@@ -325,7 +326,7 @@ public class MachineLoader implements Runnable {
GT_MetaTileEntity_DataReader.run();
- if (!Loader.isModLoaded("dreamcraft")) {
+ if (!Loader.isModLoaded(Reference.DREAMCRAFT)) {
new NoDreamCraftMachineLoader().run();
}
}
diff --git a/src/main/java/com/github/technus/tectech/loader/ThingsLoader.java b/src/main/java/com/github/technus/tectech/loader/thing/ThingsLoader.java
index 33bd97611e..c5406a2206 100644
--- a/src/main/java/com/github/technus/tectech/loader/ThingsLoader.java
+++ b/src/main/java/com/github/technus/tectech/loader/thing/ThingsLoader.java
@@ -1,10 +1,11 @@
-package com.github.technus.tectech.loader;
+package com.github.technus.tectech.loader.thing;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.compatibility.dreamcraft.NoDreamCraftBlockLoader;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.thing.block.QuantumGlassBlock;
import com.github.technus.tectech.thing.block.QuantumStuffBlock;
import com.github.technus.tectech.thing.block.ReactorSimBlock;
+import com.github.technus.tectech.thing.casing.GT_Block_CasingsNH;
import com.github.technus.tectech.thing.casing.GT_Block_CasingsTT;
import com.github.technus.tectech.thing.casing.GT_Block_HintTT;
import com.github.technus.tectech.thing.casing.TT_Container_Casings;
@@ -26,41 +27,41 @@ public class ThingsLoader implements Runnable {
if(Textures.BlockIcons.casingTexturePages[tectechTexturePage1]==null) {
Textures.BlockIcons.casingTexturePages[tectechTexturePage1] = new ITexture[128];
}
- if(!Loader.isModLoaded("dreamcraft")){
- TecTech.Logger.info("Adding basic casings");
- new NoDreamCraftBlockLoader().run();
+ if(!Loader.isModLoaded(Reference.DREAMCRAFT)){
+ TecTech.LOGGER.info("Adding basic casings");
+ TT_Container_Casings.sBlockCasingsNH = new GT_Block_CasingsNH();
}
- TecTech.Logger.info("Added texture page if was null");
+ TecTech.LOGGER.info("Added texture page if was null");
TT_Container_Casings.sBlockCasingsTT = new GT_Block_CasingsTT();
- TecTech.Logger.info("Elemental Casing registered");
+ TecTech.LOGGER.info("Elemental Casing registered");
TT_Container_Casings.sHintCasingsTT = new GT_Block_HintTT();
- TecTech.Logger.info("Hint Blocks registered");
+ TecTech.LOGGER.info("Hint Blocks registered");
QuantumGlassBlock.run();
- TecTech.Logger.info("Quantum Glass registered");
+ TecTech.LOGGER.info("Quantum Glass registered");
QuantumStuffBlock.run();
- TecTech.Logger.info("Quantum Stuff registered");
+ TecTech.LOGGER.info("Quantum Stuff registered");
if(Loader.isModLoaded("openmodularturrets")) {
TurretHeadEM.run();
- TecTech.Logger.info("TurretHeadEM registered");
+ TecTech.LOGGER.info("TurretHeadEM registered");
TurretBaseEM.run();
- TecTech.Logger.info("TurretBaseEM registered");
+ TecTech.LOGGER.info("TurretBaseEM registered");
}
ReactorSimBlock.run();
- TecTech.Logger.info("Reactor Simulator registered");
+ TecTech.LOGGER.info("Reactor Simulator registered");
ConstructableTriggerItem.run();
FrontRotationTriggerItem.run();
ParametrizerMemoryCard.run();
ElementalDefinitionScanStorage_EM.run();
EuMeterGT.run();
- TecTech.Logger.info("Useful Items registered");
+ TecTech.LOGGER.info("Useful Items registered");
ElementalDefinitionContainer_EM.run();
DebugElementalInstanceContainer_EM.run();
- TecTech.Logger.info("Debug Items registered");
+ TecTech.LOGGER.info("Debug Items registered");
}
}
diff --git a/src/main/java/com/github/technus/tectech/dataFramework/DataPacket.java b/src/main/java/com/github/technus/tectech/mechanics/dataTransport/DataPacket.java
index 8a6c610297..82234e4c75 100644
--- a/src/main/java/com/github/technus/tectech/dataFramework/DataPacket.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/dataTransport/DataPacket.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.dataFramework;
+package com.github.technus.tectech.mechanics.dataTransport;
import com.github.technus.tectech.Vec3pos;
import net.minecraft.nbt.NBTTagCompound;
diff --git a/src/main/java/com/github/technus/tectech/dataFramework/InventoryDataPacket.java b/src/main/java/com/github/technus/tectech/mechanics/dataTransport/InventoryDataPacket.java
index cb1f94e038..9fb2fed082 100644
--- a/src/main/java/com/github/technus/tectech/dataFramework/InventoryDataPacket.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/dataTransport/InventoryDataPacket.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.dataFramework;
+package com.github.technus.tectech.mechanics.dataTransport;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
diff --git a/src/main/java/com/github/technus/tectech/dataFramework/QuantumDataPacket.java b/src/main/java/com/github/technus/tectech/mechanics/dataTransport/QuantumDataPacket.java
index b28199157f..9661d8d315 100644
--- a/src/main/java/com/github/technus/tectech/dataFramework/QuantumDataPacket.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/dataTransport/QuantumDataPacket.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.dataFramework;
+package com.github.technus.tectech.mechanics.dataTransport;
import com.github.technus.tectech.Vec3pos;
import net.minecraft.nbt.NBTTagCompound;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/README b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/README
index f6c0b35e5f..f6c0b35e5f 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/README
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/README
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalDecay.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalDecay.java
index a2b6eed324..7f56ee8e5b 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalDecay.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalDecay.java
@@ -1,8 +1,8 @@
-package com.github.technus.tectech.elementalMatter.core;
+package com.github.technus.tectech.mechanics.elementalMatter.core;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
/**
* Created by danie_000 on 22.10.2016.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalDefinitionStackMap.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalDefinitionStackMap.java
index e6ba0e6be8..294acfc479 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalDefinitionStackMap.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalDefinitionStackMap.java
@@ -1,12 +1,12 @@
-package com.github.technus.tectech.elementalMatter.core;
+package com.github.technus.tectech.mechanics.elementalMatter.core;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import net.minecraft.nbt.NBTTagCompound;
import java.util.TreeMap;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
/**
* Created by Tec on 12.05.2017.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalInstanceStackMap.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalInstanceStackMap.java
index 436845af85..799b1f183f 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalInstanceStackMap.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalInstanceStackMap.java
@@ -1,15 +1,15 @@
-package com.github.technus.tectech.elementalMatter.core;
+package com.github.technus.tectech.mechanics.elementalMatter.core;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumChatFormatting;
import java.util.*;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
/**
* Created by danie_000 on 22.01.2017.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalMutableDefinitionStackMap.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalMutableDefinitionStackMap.java
index 8523280c0a..172067f93b 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalMutableDefinitionStackMap.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalMutableDefinitionStackMap.java
@@ -1,15 +1,15 @@
-package com.github.technus.tectech.elementalMatter.core;
+package com.github.technus.tectech.mechanics.elementalMatter.core;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import net.minecraft.nbt.NBTTagCompound;
import java.util.Map;
import java.util.TreeMap;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
/**
* Created by danie_000 on 22.01.2017.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalStackMap.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalStackMap.java
index bcc541c715..19f5789804 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/cElementalStackMap.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/cElementalStackMap.java
@@ -1,7 +1,7 @@
-package com.github.technus.tectech.elementalMatter.core;
+package com.github.technus.tectech.mechanics.elementalMatter.core;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumChatFormatting;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/commands/GiveEM.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/commands/GiveEM.java
index d421ea1406..8c9f27e03b 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/commands/GiveEM.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/commands/GiveEM.java
@@ -1,13 +1,13 @@
-package com.github.technus.tectech.elementalMatter.core.commands;
+package com.github.technus.tectech.mechanics.elementalMatter.core.commands;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.cElementalMutableDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalPrimitive;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalMutableDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalPrimitive;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import com.github.technus.tectech.thing.item.DebugElementalInstanceContainer_EM;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
@@ -22,8 +22,8 @@ import java.util.Arrays;
import java.util.List;
import java.util.Map;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
/**
* Created by danie_000 on 30.12.2017.
@@ -42,7 +42,7 @@ public class GiveEM implements ICommand {
if(args.length < 3) {
sender.addChatMessage(new ChatComponentText(getCommandUsage(sender)));
}else{
- TecTech.Logger.info("Spawninig EM for "+((EntityPlayerMP) sender).getDisplayName()+" - "+Arrays.toString(args));
+ TecTech.LOGGER.info("Spawninig EM for "+((EntityPlayerMP) sender).getDisplayName()+" - "+Arrays.toString(args));
ArrayList<String> list=new ArrayList<>();
list.addAll(Arrays.asList(args));
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/commands/ListEM.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/commands/ListEM.java
index d89438eca7..9e034f4655 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/commands/ListEM.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/commands/ListEM.java
@@ -1,7 +1,7 @@
-package com.github.technus.tectech.elementalMatter.core.commands;
+package com.github.technus.tectech.mechanics.elementalMatter.core.commands;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalPrimitive;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalPrimitive;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.util.ChatComponentText;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/iElementalInstanceContainer.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/iElementalInstanceContainer.java
index 74d371272b..5244676643 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/iElementalInstanceContainer.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/iElementalInstanceContainer.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.elementalMatter.core;
+package com.github.technus.tectech.mechanics.elementalMatter.core;
/**
* Created by danie_000 on 25.01.2017.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/rElementalRecipe.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/rElementalRecipe.java
index 29fea2fa4c..c2fd9a81d4 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/rElementalRecipe.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/rElementalRecipe.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.elementalMatter.core;
+package com.github.technus.tectech.mechanics.elementalMatter.core;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/rElementalRecipeMap.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/rElementalRecipeMap.java
index 9a8ad52252..c289fc94ae 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/rElementalRecipeMap.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/rElementalRecipeMap.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.elementalMatter.core;
+package com.github.technus.tectech.mechanics.elementalMatter.core;
import java.util.HashMap;
import java.util.Map;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/stacks/cElementalDefinitionStack.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/stacks/cElementalDefinitionStack.java
index 4e74650786..6b6fe35b41 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/stacks/cElementalDefinitionStack.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/stacks/cElementalDefinitionStack.java
@@ -1,10 +1,10 @@
-package com.github.technus.tectech.elementalMatter.core.stacks;
+package com.github.technus.tectech.mechanics.elementalMatter.core.stacks;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import net.minecraft.nbt.NBTTagCompound;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.cPrimitiveDefinition.null__;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.cPrimitiveDefinition.null__;
/**
* Created by danie_000 on 20.11.2016.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/stacks/cElementalInstanceStack.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/stacks/cElementalInstanceStack.java
index e1144c410d..b0ee3f8460 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/stacks/cElementalInstanceStack.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/stacks/cElementalInstanceStack.java
@@ -1,18 +1,18 @@
-package com.github.technus.tectech.elementalMatter.core.stacks;
+package com.github.technus.tectech.mechanics.elementalMatter.core.stacks;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.elementalMatter.core.cElementalDecay;
-import com.github.technus.tectech.elementalMatter.core.cElementalDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import net.minecraft.nbt.NBTTagCompound;
import java.util.ArrayList;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.cPrimitiveDefinition.null__;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.eBosonDefinition.deadEnd;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.cPrimitiveDefinition.null__;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eBosonDefinition.deadEnd;
import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.*;
/**
@@ -49,7 +49,7 @@ public final class cElementalInstanceStack implements iHasElementalDefinition {
if (bColor < 0 || bColor > 2) {//transforms colorable??? into proper color
this.color = bColor;
} else {
- this.color = (byte) TecTech.Rnd.nextInt(3);
+ this.color = (byte) TecTech.RANDOM.nextInt(3);
}
this.lifeTimeMult = lifeTimeMult;
lifeTime = definition.getRawTimeSpan(energy) * this.lifeTimeMult;
@@ -130,7 +130,7 @@ public final class cElementalInstanceStack implements iHasElementalDefinition {
if (color < 0 || color > 2) {
return color;
}
- return color = (byte) TecTech.Rnd.nextInt(3);
+ return color = (byte) TecTech.RANDOM.nextInt(3);
}
public float getLifeTime() {
@@ -217,7 +217,7 @@ public final class cElementalInstanceStack implements iHasElementalDefinition {
private cElementalInstanceStackMap exponentialDecayCompute(cElementalDecay[] decays, float lifeTimeMult, long newProductsAge, long newEnergyLevel) {
double decayInverseRatio=Math.pow(2d,1d/* 1 second *//(double)lifeTime);
double newAmount=(double)amount/decayInverseRatio;
- long amountRemaining= (long)Math.floor(newAmount) +(TecTech.Rnd.nextDouble()<=newAmount-Math.floor(newAmount)?1:0);
+ long amountRemaining= (long)Math.floor(newAmount) +(TecTech.RANDOM.nextDouble()<=newAmount-Math.floor(newAmount)?1:0);
//if(definition.getSymbol().startsWith("U ")) {
// System.out.println("newAmount = " + newAmount);
// System.out.println("amountRemaining = " + amountRemaining);
@@ -315,7 +315,7 @@ public final class cElementalInstanceStack implements iHasElementalDefinition {
}
for (int i = 0; i < amountRemaining; i++) {
- double rand = TecTech.Rnd.nextDouble();
+ double rand = TecTech.RANDOM.nextDouble();
for (int j = 0; j < differentDecays; j++) {//looking for the thing it decayed into
rand -= decays[j].probability;
if (rand <= 0D) {
@@ -393,7 +393,7 @@ public final class cElementalInstanceStack implements iHasElementalDefinition {
double wholeParts=Math.floor(energy);
energy=Math.min(energy-wholeParts,1)+(wholeParts>=0?-0.11709966304863834:0.11709966304863834);
- setEnergy(Math.min(maxEnergy,(long)wholeParts+(energy>TecTech.Rnd.nextDouble()?1:0)));
+ setEnergy(Math.min(maxEnergy,(long)wholeParts+(energy>TecTech.RANDOM.nextDouble()?1:0)));
return this;
}
@@ -480,7 +480,7 @@ public final class cElementalInstanceStack implements iHasElementalDefinition {
return false;
}
- //Amount shouldn't be hashed if this is just indicating amount and not structure, DOES NOT CARE ABOUT INSTANCE INFO
+ //Amount shouldn't be hashed if this is just indicating amount and not structure, DOES NOT CARE ABOUT creativeTabTecTech INFO
@Override
public int hashCode() {
return definition.hashCode();
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/stacks/iHasElementalDefinition.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/stacks/iHasElementalDefinition.java
index 68ca71f33c..480707d570 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/stacks/iHasElementalDefinition.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/stacks/iHasElementalDefinition.java
@@ -1,6 +1,6 @@
-package com.github.technus.tectech.elementalMatter.core.stacks;
+package com.github.technus.tectech.mechanics.elementalMatter.core.stacks;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
/**
* Created by danie_000 on 30.01.2017.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/tElementalException.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/tElementalException.java
index 4bb3b4020f..2adadfd062 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/tElementalException.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/tElementalException.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.elementalMatter.core;
+package com.github.technus.tectech.mechanics.elementalMatter.core;
/**
* Created by danie_000 on 19.11.2016.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalDefinition.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/templates/cElementalDefinition.java
index 622c5f99ae..de8ccb7b2b 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalDefinition.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/templates/cElementalDefinition.java
@@ -1,7 +1,7 @@
-package com.github.technus.tectech.elementalMatter.core.templates;
+package com.github.technus.tectech.mechanics.elementalMatter.core.templates;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
import net.minecraft.nbt.NBTTagCompound;
import java.lang.reflect.Method;
@@ -9,8 +9,8 @@ import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
/**
* Created by danie_000 on 23.01.2017.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalPrimitive.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/templates/cElementalPrimitive.java
index 9522b166d6..5d0826ffb6 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalPrimitive.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/templates/cElementalPrimitive.java
@@ -1,13 +1,13 @@
-package com.github.technus.tectech.elementalMatter.core.templates;
+package com.github.technus.tectech.mechanics.elementalMatter.core.templates;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.elementalMatter.core.cElementalDecay;
-import com.github.technus.tectech.elementalMatter.core.cElementalDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.tElementalException;
-import com.github.technus.tectech.elementalMatter.core.transformations.aFluidDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.aItemDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.aOredictDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.tElementalException;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aFluidDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aItemDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aOredictDequantizationInfo;
import net.minecraft.client.Minecraft;
import net.minecraft.crash.CrashReport;
import net.minecraft.nbt.NBTTagCompound;
@@ -16,8 +16,8 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.cPrimitiveDefinition.null__;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.cPrimitiveDefinition.null__;
import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.*;
/**
@@ -234,7 +234,7 @@ public abstract class cElementalPrimitive extends cElementalDefinition {
}
}
if(DEBUG_MODE) {
- TecTech.Logger.info("Registered Elemental Matter Class: Primitive " + nbtType + ' ' + -128);
+ TecTech.LOGGER.info("Registered Elemental Matter Class: Primitive " + nbtType + ' ' + -128);
}
}
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/iElementalDefinition.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/templates/iElementalDefinition.java
index 8692203e55..c5f7e5afed 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/iElementalDefinition.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/templates/iElementalDefinition.java
@@ -1,11 +1,11 @@
-package com.github.technus.tectech.elementalMatter.core.templates;
-
-import com.github.technus.tectech.elementalMatter.core.cElementalDecay;
-import com.github.technus.tectech.elementalMatter.core.cElementalDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.transformations.aFluidDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.aItemDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.aOredictDequantizationInfo;
+package com.github.technus.tectech.mechanics.elementalMatter.core.templates;
+
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aFluidDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aItemDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aOredictDequantizationInfo;
import net.minecraft.nbt.NBTTagCompound;
import java.util.ArrayList;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aFluidDequantizationInfo.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aFluidDequantizationInfo.java
index 6f66830f83..101163e78d 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aFluidDequantizationInfo.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aFluidDequantizationInfo.java
@@ -1,6 +1,6 @@
-package com.github.technus.tectech.elementalMatter.core.transformations;
+package com.github.technus.tectech.mechanics.elementalMatter.core.transformations;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aFluidQuantizationInfo.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aFluidQuantizationInfo.java
index 714b991c55..287fefbe14 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aFluidQuantizationInfo.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aFluidQuantizationInfo.java
@@ -1,6 +1,6 @@
-package com.github.technus.tectech.elementalMatter.core.transformations;
+package com.github.technus.tectech.mechanics.elementalMatter.core.transformations;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aItemDequantizationInfo.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aItemDequantizationInfo.java
index d7ab4cc9f7..b764f59863 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aItemDequantizationInfo.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aItemDequantizationInfo.java
@@ -1,6 +1,6 @@
-package com.github.technus.tectech.elementalMatter.core.transformations;
+package com.github.technus.tectech.mechanics.elementalMatter.core.transformations;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_OreDictUnificator;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aItemQuantizationInfo.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aItemQuantizationInfo.java
index cc240e1246..80179e1eb8 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aItemQuantizationInfo.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aItemQuantizationInfo.java
@@ -1,6 +1,6 @@
-package com.github.technus.tectech.elementalMatter.core.transformations;
+package com.github.technus.tectech.mechanics.elementalMatter.core.transformations;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aOredictDequantizationInfo.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aOredictDequantizationInfo.java
index 0d0e75e5af..51b1a6806d 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aOredictDequantizationInfo.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aOredictDequantizationInfo.java
@@ -1,6 +1,6 @@
-package com.github.technus.tectech.elementalMatter.core.transformations;
+package com.github.technus.tectech.mechanics.elementalMatter.core.transformations;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import net.minecraftforge.oredict.OreDictionary;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aOredictQuantizationInfo.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aOredictQuantizationInfo.java
index 3d9a873520..99e8589060 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/aOredictQuantizationInfo.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/aOredictQuantizationInfo.java
@@ -1,6 +1,6 @@
-package com.github.technus.tectech.elementalMatter.core.transformations;
+package com.github.technus.tectech.mechanics.elementalMatter.core.transformations;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import net.minecraftforge.oredict.OreDictionary;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/bTransformationInfo.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/bTransformationInfo.java
index 0584a7566c..01e5571f23 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/bTransformationInfo.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/bTransformationInfo.java
@@ -1,7 +1,7 @@
-package com.github.technus.tectech.elementalMatter.core.transformations;
+package com.github.technus.tectech.mechanics.elementalMatter.core.transformations;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import net.minecraft.item.ItemStack;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/iExchangeInfo.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/iExchangeInfo.java
index 84c5855dab..f4e77bfe2b 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/core/transformations/iExchangeInfo.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/transformations/iExchangeInfo.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.elementalMatter.core.transformations;
+package com.github.technus.tectech.mechanics.elementalMatter.core.transformations;
/**
* Created by Tec on 23.05.2017.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/atom/dAtomDefinition.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/complex/atom/dAtomDefinition.java
index 7abcfe9a93..a1d4640460 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/atom/dAtomDefinition.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/complex/atom/dAtomDefinition.java
@@ -1,24 +1,25 @@
-package com.github.technus.tectech.elementalMatter.definitions.complex.atom;
+package com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
import com.github.technus.tectech.XSTR;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.compatibility.gtpp.GtppAtomLoader;
-import com.github.technus.tectech.elementalMatter.core.cElementalDecay;
-import com.github.technus.tectech.elementalMatter.core.cElementalDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.cElementalMutableDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.tElementalException;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.transformations.aFluidDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.aItemDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.aOredictDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.bTransformationInfo;
-import com.github.technus.tectech.elementalMatter.definitions.complex.hadron.dHadronDefinition;
-import com.github.technus.tectech.elementalMatter.definitions.primitive.eBosonDefinition;
-import com.github.technus.tectech.elementalMatter.definitions.primitive.eLeptonDefinition;
-import com.github.technus.tectech.elementalMatter.definitions.primitive.eNeutrinoDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalMutableDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.tElementalException;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aFluidDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aItemDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aOredictDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.bTransformationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.hadron.dHadronDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eBosonDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eLeptonDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eNeutrinoDefinition;
import cpw.mods.fml.common.Loader;
import gregtech.api.enums.Materials;
import net.minecraft.nbt.NBTTagCompound;
@@ -26,9 +27,9 @@ import net.minecraft.nbt.NBTTagCompound;
import java.util.*;
import static com.github.technus.tectech.XSTR.XSTR_INSTANCE;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.eBosonDefinition.boson_Y__;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.eBosonDefinition.deadEnd;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eBosonDefinition.boson_Y__;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eBosonDefinition.deadEnd;
import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.*;
import static gregtech.api.enums.OrePrefixes.dust;
@@ -393,7 +394,7 @@ public final class dAtomDefinition extends cElementalDefinition {
if (type == 1) {
switch (decayMode) {
case -2:
- if(TecTech.Rnd.nextBoolean() && ElectronCapture(decaysList)) {
+ if(TecTech.RANDOM.nextBoolean() && ElectronCapture(decaysList)) {
return decaysList.toArray(new cElementalDecay[decaysList.size()]);
} else if(PbetaDecay(decaysList)) {
return decaysList.toArray(new cElementalDecay[decaysList.size()]);
@@ -961,7 +962,7 @@ public final class dAtomDefinition extends cElementalDefinition {
return true;
}else{
if(DEBUG_MODE) {
- TecTech.Logger.info("Tried to emit Gamma from ground state");
+ TecTech.LOGGER.info("Tried to emit Gamma from ground state");
}
decaysList.add(new cElementalDecay(decay.chance, this));
return true;
@@ -990,7 +991,7 @@ public final class dAtomDefinition extends cElementalDefinition {
default: throw new Error("Unsupported decay mode: " + decay.decayName + ' ' + neutralCount+ ' ' +element);
}
if(DEBUG_MODE) {
- TecTech.Logger.info("Failed to decay " + element + ' ' + neutralCount + ' ' + decay.decayName);
+ TecTech.LOGGER.info("Failed to decay " + element + ' ' + neutralCount + ' ' + decay.decayName);
}
return false;
}
@@ -1390,7 +1391,7 @@ public final class dAtomDefinition extends cElementalDefinition {
new cElementalDefinitionStack(dHadronDefinition.hadron_n, integerTreeSetEntry.getValue().first()),
new cElementalDefinitionStack(eLeptonDefinition.lepton_e, integerTreeSetEntry.getKey())));
if (DEBUG_MODE) {
- TecTech.Logger.info("Added Stable Atom:" + integerTreeSetEntry.getKey() + ' ' + integerTreeSetEntry.getValue().first() + ' ' + stableAtoms.get(integerTreeSetEntry.getKey()).getMass());
+ TecTech.LOGGER.info("Added Stable Atom:" + integerTreeSetEntry.getKey() + ' ' + integerTreeSetEntry.getValue().first() + ' ' + stableAtoms.get(integerTreeSetEntry.getKey()).getMass());
}
}
for (Map.Entry<Integer, TreeMap<Float, Integer>> integerTreeMapEntry : mostStableUnstableIsotopes.entrySet()) {
@@ -1399,7 +1400,7 @@ public final class dAtomDefinition extends cElementalDefinition {
new cElementalDefinitionStack(dHadronDefinition.hadron_n, integerTreeMapEntry.getValue().lastEntry().getValue()),
new cElementalDefinitionStack(eLeptonDefinition.lepton_e, integerTreeMapEntry.getKey())));
if (DEBUG_MODE) {
- TecTech.Logger.info("Added Unstable Atom:" + integerTreeMapEntry.getKey() + ' ' + integerTreeMapEntry.getValue().lastEntry().getValue() + ' ' + unstableAtoms.get(integerTreeMapEntry.getKey()).getMass());
+ TecTech.LOGGER.info("Added Unstable Atom:" + integerTreeMapEntry.getKey() + ' ' + integerTreeMapEntry.getValue().lastEntry().getValue() + ' ' + unstableAtoms.get(integerTreeMapEntry.getKey()).getMass());
}
}
deuterium=new dAtomDefinition(
@@ -1447,7 +1448,7 @@ public final class dAtomDefinition extends cElementalDefinition {
}
}
if(DEBUG_MODE) {
- TecTech.Logger.info("Registered Elemental Matter Class: Atom " + nbtType + ' ' + 64);
+ TecTech.LOGGER.info("Registered Elemental Matter Class: Atom " + nbtType + ' ' + 64);
}
}
@@ -1579,7 +1580,7 @@ public final class dAtomDefinition extends cElementalDefinition {
);
transformation.addOredict(new cElementalDefinitionStack(temp, 144), dust, Materials.Uranium235,1);
- TecTech.Logger.info("Diff Mass U : "+(tempMass-temp.getMass()));
+ TecTech.LOGGER.info("Diff Mass U : "+(tempMass-temp.getMass()));
temp=new dAtomDefinition(
new cElementalDefinitionStack(eLeptonDefinition.lepton_e, 94),
@@ -1595,9 +1596,9 @@ public final class dAtomDefinition extends cElementalDefinition {
);
transformation.addOredict(new cElementalDefinitionStack(somethingHeavy, 144), dust, Materials.Plutonium241,1);
- TecTech.Logger.info("Diff Mass Pu: "+(somethingHeavy.getMass()-temp.getMass()));
+ TecTech.LOGGER.info("Diff Mass Pu: "+(somethingHeavy.getMass()-temp.getMass()));
- TecTech.Logger.info("Neutron Mass: "+dHadronDefinition.hadron_n.getMass());
+ TecTech.LOGGER.info("Neutron Mass: "+dHadronDefinition.hadron_n.getMass());
} catch (tElementalException e) {
if (DEBUG_MODE) {
@@ -1605,7 +1606,7 @@ public final class dAtomDefinition extends cElementalDefinition {
}
}
- if(Loader.isModLoaded("miscutils")) {
+ if(Loader.isModLoaded(Reference.GTPLUSPLUS)) {
new GtppAtomLoader().run();
}
}
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/atom/iaeaNuclide.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/complex/atom/iaeaNuclide.java
index 49cb89b53c..10c537ed55 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/atom/iaeaNuclide.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/complex/atom/iaeaNuclide.java
@@ -1,4 +1,4 @@
-package com.github.technus.tectech.elementalMatter.definitions.complex.atom;
+package com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom;
import com.github.technus.tectech.Util;
@@ -9,7 +9,7 @@ import java.util.HashMap;
import java.util.HashSet;
import java.util.TreeMap;
-import static com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition.STABLE_RAW_LIFE_TIME;
+import static com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition.STABLE_RAW_LIFE_TIME;
public final class iaeaNuclide {
public static final double AMU_TO_EV_DIV_C_C=9.31494061E08D,MICRO_AMU_TO_EV_DIV_C_C=9.31494061E02D;
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/hadron/dHadronDefinition.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/complex/hadron/dHadronDefinition.java
index 50f1b2d1ce..ed2cee8b2f 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/hadron/dHadronDefinition.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/complex/hadron/dHadronDefinition.java
@@ -1,17 +1,17 @@
-package com.github.technus.tectech.elementalMatter.definitions.complex.hadron;
+package com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.hadron;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.elementalMatter.core.cElementalDecay;
-import com.github.technus.tectech.elementalMatter.core.cElementalDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.cElementalMutableDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.tElementalException;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.transformations.*;
-import com.github.technus.tectech.elementalMatter.definitions.primitive.eBosonDefinition;
-import com.github.technus.tectech.elementalMatter.definitions.primitive.eQuarkDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalMutableDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.tElementalException;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.*;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eBosonDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eQuarkDefinition;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import net.minecraft.nbt.NBTTagCompound;
@@ -19,9 +19,9 @@ import net.minecraftforge.oredict.OreDictionary;
import java.util.ArrayList;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
-import static com.github.technus.tectech.elementalMatter.definitions.complex.atom.dAtomDefinition.transformation;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.eBosonDefinition.boson_Y__;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.dAtomDefinition.transformation;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eBosonDefinition.boson_Y__;
import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.*;
import static gregtech.api.enums.OrePrefixes.dust;
@@ -410,7 +410,7 @@ public final class dHadronDefinition extends cElementalDefinition {//TODO Optimi
}
}
if(DEBUG_MODE) {
- TecTech.Logger.info("Registered Elemental Matter Class: Hadron " + nbtType + ' ' + -64);
+ TecTech.LOGGER.info("Registered Elemental Matter Class: Hadron " + nbtType + ' ' + -64);
}
}
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/cPrimitiveDefinition.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/cPrimitiveDefinition.java
index 24904e6a31..6b23c232c7 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/cPrimitiveDefinition.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/cPrimitiveDefinition.java
@@ -1,8 +1,8 @@
-package com.github.technus.tectech.elementalMatter.definitions.primitive;
+package com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalPrimitive;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalPrimitive;
-import static com.github.technus.tectech.elementalMatter.core.cElementalDecay.noDecay;
+import static com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay.noDecay;
/**
* Created by danie_000 on 22.10.2016.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eBosonDefinition.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eBosonDefinition.java
index 5d98f3cb71..dada9b9c10 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eBosonDefinition.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eBosonDefinition.java
@@ -1,8 +1,8 @@
-package com.github.technus.tectech.elementalMatter.definitions.primitive;
+package com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive;
-import com.github.technus.tectech.elementalMatter.core.cElementalDecay;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalPrimitive;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalPrimitive;
/**
* Created by danie_000 on 22.10.2016.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eLeptonDefinition.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eLeptonDefinition.java
index 0e7abf4a42..412fcfcd4e 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eLeptonDefinition.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eLeptonDefinition.java
@@ -1,8 +1,8 @@
-package com.github.technus.tectech.elementalMatter.definitions.primitive;
+package com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive;
-import com.github.technus.tectech.elementalMatter.core.cElementalDecay;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalPrimitive;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalPrimitive;
/**
* Created by danie_000 on 22.10.2016.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eNeutrinoDefinition.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eNeutrinoDefinition.java
index d5e3d38b4d..9f20908575 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eNeutrinoDefinition.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eNeutrinoDefinition.java
@@ -1,8 +1,8 @@
-package com.github.technus.tectech.elementalMatter.definitions.primitive;
+package com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive;
-import com.github.technus.tectech.elementalMatter.core.cElementalDecay;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalPrimitive;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalPrimitive;
/**
* Created by danie_000 on 22.10.2016.
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eQuarkDefinition.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eQuarkDefinition.java
index 3abf04464f..9a7dd6753a 100644
--- a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/primitive/eQuarkDefinition.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/definitions/primitive/eQuarkDefinition.java
@@ -1,7 +1,7 @@
-package com.github.technus.tectech.elementalMatter.definitions.primitive;
+package com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive;
-import com.github.technus.tectech.elementalMatter.core.cElementalDecay;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalPrimitive;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDecay;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalPrimitive;
/**
* Created by danie_000 on 22.10.2016.
diff --git a/src/main/java/com/github/technus/tectech/nei/TT_NEI_ResearchHandler.java b/src/main/java/com/github/technus/tectech/nei/TT_NEI_ResearchHandler.java
index b5e9f27f0b..2d520d521e 100644
--- a/src/main/java/com/github/technus/tectech/nei/TT_NEI_ResearchHandler.java
+++ b/src/main/java/com/github/technus/tectech/nei/TT_NEI_ResearchHandler.java
@@ -8,7 +8,7 @@ import codechicken.nei.guihook.IContainerInputHandler;
import codechicken.nei.guihook.IContainerTooltipHandler;
import codechicken.nei.recipe.*;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.recipe.TT_recipe;
import cpw.mods.fml.common.event.FMLInterModComms;
import gregtech.api.enums.OrePrefixes;
diff --git a/src/main/java/com/github/technus/tectech/nei/TT_NEI_ScannerHandler.java b/src/main/java/com/github/technus/tectech/nei/TT_NEI_ScannerHandler.java
index 1ee9f21d65..3f907154bb 100644
--- a/src/main/java/com/github/technus/tectech/nei/TT_NEI_ScannerHandler.java
+++ b/src/main/java/com/github/technus/tectech/nei/TT_NEI_ScannerHandler.java
@@ -8,7 +8,7 @@ import codechicken.nei.guihook.IContainerInputHandler;
import codechicken.nei.guihook.IContainerTooltipHandler;
import codechicken.nei.recipe.*;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.recipe.TT_recipe;
import cpw.mods.fml.common.event.FMLInterModComms;
import gregtech.api.enums.OrePrefixes;
diff --git a/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java b/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java
index 8ed457ca79..1eea24edae 100644
--- a/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java
+++ b/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java
@@ -1,7 +1,7 @@
package com.github.technus.tectech.proxy;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.entity.fx.BlockHint;
import com.github.technus.tectech.thing.block.QuantumGlassBlock;
import com.github.technus.tectech.thing.block.QuantumGlassRender;
@@ -43,8 +43,8 @@ public class ClientProxy extends CommonProxy {
public void hint_particle(World world, int x, int y, int z, Block block, int meta) {
Minecraft.getMinecraft().effectRenderer.addEffect(new BlockHint(world,x,y,z,block,meta));
- EntityFX particle = new EntityExplodeFX(world, x + TecTech.Rnd.nextFloat() * 0.5F, y + TecTech.Rnd.nextFloat() * 0.5F, z + TecTech.Rnd.nextFloat() * 0.5F, 0, 0, 0);
- particle.setRBGColorF(0, 0.6F * TecTech.Rnd.nextFloat(), 0.8f);
+ EntityFX particle = new EntityExplodeFX(world, x + TecTech.RANDOM.nextFloat() * 0.5F, y + TecTech.RANDOM.nextFloat() * 0.5F, z + TecTech.RANDOM.nextFloat() * 0.5F, 0, 0, 0);
+ particle.setRBGColorF(0, 0.6F * TecTech.RANDOM.nextFloat(), 0.8f);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
@@ -59,15 +59,15 @@ public class ClientProxy extends CommonProxy {
//aDir.offsetY*0.1F+0.2F+0.1F*floatGen.nextFloat();
float xSpd = 0;
float zSpd = 0;
- EntityFX particle = new EntityExplodeFX(aMuffler.getWorld(), xPos + TecTech.Rnd.nextFloat() * 0.5F, yPos + TecTech.Rnd.nextFloat() * 0.5F, zPos + TecTech.Rnd.nextFloat() * 0.5F, xSpd, ySpd, zSpd);
- particle.setRBGColorF(0, 0.6F * TecTech.Rnd.nextFloat(), 0.8f);
+ EntityFX particle = new EntityExplodeFX(aMuffler.getWorld(), xPos + TecTech.RANDOM.nextFloat() * 0.5F, yPos + TecTech.RANDOM.nextFloat() * 0.5F, zPos + TecTech.RANDOM.nextFloat() * 0.5F, xSpd, ySpd, zSpd);
+ particle.setRBGColorF(0, 0.6F * TecTech.RANDOM.nextFloat(), 0.8f);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
@Override
public void em_particle(World w,double x,double y,double z) {//CUTE!
- EntityFX particle = new EntityExplodeFX(w, x + TecTech.Rnd.nextFloat() * 0.5F, y + TecTech.Rnd.nextFloat() * 0.5F, z + TecTech.Rnd.nextFloat() * 0.5F, 0, 0, 0);
- particle.setRBGColorF(0, 0.6F * TecTech.Rnd.nextFloat(), 0.8f);
+ EntityFX particle = new EntityExplodeFX(w, x + TecTech.RANDOM.nextFloat() * 0.5F, y + TecTech.RANDOM.nextFloat() * 0.5F, z + TecTech.RANDOM.nextFloat() * 0.5F, 0, 0, 0);
+ particle.setRBGColorF(0, 0.6F * TecTech.RANDOM.nextFloat(), 0.8f);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
diff --git a/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java b/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java
index ff26894729..57d479a705 100644
--- a/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java
+++ b/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java
@@ -1,9 +1,9 @@
package com.github.technus.tectech.recipe;
-import com.github.technus.tectech.elementalMatter.core.cElementalDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.templates.cElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.cElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.util.GT_Recipe;
import net.minecraft.item.ItemStack;
@@ -13,7 +13,7 @@ import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
public class TT_recipe extends GT_Recipe {
public static final String E_RECIPE_ID = "eRecipeID";
diff --git a/src/main/java/com/github/technus/tectech/recipe/TT_recipeAdder.java b/src/main/java/com/github/technus/tectech/recipe/TT_recipeAdder.java
index 64925e2a4b..d4a98fabe5 100644
--- a/src/main/java/com/github/technus/tectech/recipe/TT_recipeAdder.java
+++ b/src/main/java/com/github/technus/tectech/recipe/TT_recipeAdder.java
@@ -1,9 +1,9 @@
package com.github.technus.tectech.recipe;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.elementalMatter.core.cElementalDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition;
import com.github.technus.tectech.thing.item.ElementalDefinitionContainer_EM;
import com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_crafting;
import com.github.technus.tectech.thing.metaTileEntity.multi.em_machine.GT_MetaTileEntity_EM_machine;
@@ -29,7 +29,7 @@ public class TT_recipeAdder extends GT_RecipeAdder {
}
for(ItemStack tItem : aInputs){
if(tItem==null){
- TecTech.Logger.error("addResearchableAssemblingLineRecipe "+aResearchItem.getDisplayName()+" --> "+aOutput.getUnlocalizedName()+" there is some null item in that recipe");
+ TecTech.LOGGER.error("addResearchableAssemblingLineRecipe "+aResearchItem.getDisplayName()+" --> "+aOutput.getUnlocalizedName()+" there is some null item in that recipe");
}
}
if(researchAmperage<=0) {
@@ -70,7 +70,7 @@ public class TT_recipeAdder extends GT_RecipeAdder {
}
for(ItemStack tItem : aInputs){
if(tItem==null){
- TecTech.Logger.error("addResearchableEMmachineRecipe "+aResearchItem.getDisplayName()+" --> "+aOutput.getUnlocalizedName()+" there is some null item in that recipe");
+ TecTech.LOGGER.error("addResearchableEMmachineRecipe "+aResearchItem.getDisplayName()+" --> "+aOutput.getUnlocalizedName()+" there is some null item in that recipe");
}
}
if(researchAmperage<=0) {
@@ -127,7 +127,7 @@ public class TT_recipeAdder extends GT_RecipeAdder {
}
for(ItemStack tItem : aInputs){
if(tItem==null){
- TecTech.Logger.error("addScannableEMmachineRecipe "+aResearchEM+" --> "+aOutput.getUnlocalizedName()+" there is some null item in that recipe");
+ TecTech.LOGGER.error("addScannableEMmachineRecipe "+aResearchEM+" --> "+aOutput.getUnlocalizedName()+" there is some null item in that recipe");
}
}
if(researchAmperage<=0) {
diff --git a/src/main/java/com/github/technus/tectech/thing/block/QuantumGlassBlock.java b/src/main/java/com/github/technus/tectech/thing/block/QuantumGlassBlock.java
index 44018a7392..ef903cbf38 100644
--- a/src/main/java/com/github/technus/tectech/thing/block/QuantumGlassBlock.java
+++ b/src/main/java/com/github/technus/tectech/thing/block/QuantumGlassBlock.java
@@ -12,7 +12,7 @@ import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
/**
* Created by danie_000 on 17.12.2016.
diff --git a/src/main/java/com/github/technus/tectech/thing/block/QuantumStuffBlock.java b/src/main/java/com/github/technus/tectech/thing/block/QuantumStuffBlock.java
index bd26c838ba..639a269523 100644
--- a/src/main/java/com/github/technus/tectech/thing/block/QuantumStuffBlock.java
+++ b/src/main/java/com/github/technus/tectech/thing/block/QuantumStuffBlock.java
@@ -15,7 +15,7 @@ import net.minecraft.world.World;
import java.util.ArrayList;
import java.util.Random;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
/**
* Created by danie_000 on 17.12.2016.
diff --git a/src/main/java/com/github/technus/tectech/thing/block/QuantumStuffRender.java b/src/main/java/com/github/technus/tectech/thing/block/QuantumStuffRender.java
index add97c46a1..5d495a8355 100644
--- a/src/main/java/com/github/technus/tectech/thing/block/QuantumStuffRender.java
+++ b/src/main/java/com/github/technus/tectech/thing/block/QuantumStuffRender.java
@@ -58,9 +58,9 @@ public final class QuantumStuffRender implements ISimpleBlockRenderingHandler {
tes.setBrightness(15728880);
IIcon side = QuantumStuffBlock.stuff;
for(int i=0;i<6;i++){
- float f = 1 - TecTech.Rnd.nextFloat() / 4f, g = f - TecTech.Rnd.nextFloat() / 4f, r = g - TecTech.Rnd.nextFloat() / 4f - 0.25f;
+ float f = 1 - TecTech.RANDOM.nextFloat() / 4f, g = f - TecTech.RANDOM.nextFloat() / 4f, r = g - TecTech.RANDOM.nextFloat() / 4f - 0.25f;
tes.setColorOpaque_F(r, g, f);
- float rotX=TecTech.Rnd.nextFloat()*2*(float) Math.PI,rotY=TecTech.Rnd.nextFloat()*2*(float) Math.PI,rotZ=TecTech.Rnd.nextFloat()*2*(float) Math.PI;
+ float rotX=TecTech.RANDOM.nextFloat()*2*(float) Math.PI,rotY=TecTech.RANDOM.nextFloat()*2*(float) Math.PI,rotZ=TecTech.RANDOM.nextFloat()*2*(float) Math.PI;
tesAbuse(x,y,z,-1.425f,-1.425f,.1f,rotX,rotY,rotZ,side.getMinU(), side.getMaxV());
tesAbuse(x,y,z,-1.425f,1.425f,.1f,rotX,rotY,rotZ,side.getMinU(), side.getMinV());
tesAbuse(x,y,z,1.425f,1.425f,.1f,rotX,rotY,rotZ,side.getMaxU(), side.getMinV());
diff --git a/src/main/java/com/github/technus/tectech/thing/block/ReactorSimBlock.java b/src/main/java/com/github/technus/tectech/thing/block/ReactorSimBlock.java
index ebe5808a4a..1440e16c62 100644
--- a/src/main/java/com/github/technus/tectech/thing/block/ReactorSimBlock.java
+++ b/src/main/java/com/github/technus/tectech/thing/block/ReactorSimBlock.java
@@ -17,7 +17,7 @@ import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
/**
* Created by danie_000 on 30.09.2017.
diff --git a/src/main/java/com/github/technus/tectech/thing/casing/GT_Block_HintTT.java b/src/main/java/com/github/technus/tectech/thing/casing/GT_Block_HintTT.java
index 5112f156c7..dc9e809b46 100644
--- a/src/main/java/com/github/technus/tectech/thing/casing/GT_Block_HintTT.java
+++ b/src/main/java/com/github/technus/tectech/thing/casing/GT_Block_HintTT.java
@@ -1,6 +1,6 @@
package com.github.technus.tectech.thing.casing;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.thing.CustomItemList;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
diff --git a/src/main/java/com/github/technus/tectech/thing/item/ConstructableTriggerItem.java b/src/main/java/com/github/technus/tectech/thing/item/ConstructableTriggerItem.java
index 5b9db73126..64efffb627 100644
--- a/src/main/java/com/github/technus/tectech/thing/item/ConstructableTriggerItem.java
+++ b/src/main/java/com/github/technus/tectech/thing/item/ConstructableTriggerItem.java
@@ -24,7 +24,7 @@ import java.util.HashMap;
import java.util.List;
import static com.github.technus.tectech.Util.StructureBuilder;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
import static gregtech.api.GregTech_API.sBlockCasings1;
/**
diff --git a/src/main/java/com/github/technus/tectech/thing/item/DebugElementalInstanceContainer_EM.java b/src/main/java/com/github/technus/tectech/thing/item/DebugElementalInstanceContainer_EM.java
index 52ebed6a21..2cd6d79d22 100644
--- a/src/main/java/com/github/technus/tectech/thing/item/DebugElementalInstanceContainer_EM.java
+++ b/src/main/java/com/github/technus/tectech/thing/item/DebugElementalInstanceContainer_EM.java
@@ -2,9 +2,9 @@ package com.github.technus.tectech.thing.item;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.iElementalInstanceContainer;
-import com.github.technus.tectech.elementalMatter.core.tElementalException;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.iElementalInstanceContainer;
+import com.github.technus.tectech.mechanics.elementalMatter.core.tElementalException;
import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
@@ -21,8 +21,8 @@ import net.minecraft.world.World;
import java.util.Collections;
import java.util.List;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.Reference.MODID;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
/**
* Created by Tec on 15.03.2017.
diff --git a/src/main/java/com/github/technus/tectech/thing/item/ElementalDefinitionContainer_EM.java b/src/main/java/com/github/technus/tectech/thing/item/ElementalDefinitionContainer_EM.java
index c2137df464..e774704f46 100644
--- a/src/main/java/com/github/technus/tectech/thing/item/ElementalDefinitionContainer_EM.java
+++ b/src/main/java/com/github/technus/tectech/thing/item/ElementalDefinitionContainer_EM.java
@@ -2,8 +2,8 @@ package com.github.technus.tectech.thing.item;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.elementalMatter.core.cElementalDefinitionStackMap;
-import com.github.technus.tectech.elementalMatter.core.tElementalException;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalDefinitionStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.tElementalException;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
@@ -14,8 +14,8 @@ import net.minecraft.nbt.NBTTagCompound;
import java.util.Collections;
import java.util.List;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.Reference.MODID;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
/**
* Created by Tec on 15.03.2017.
diff --git a/src/main/java/com/github/technus/tectech/thing/item/ElementalDefinitionScanStorage_EM.java b/src/main/java/com/github/technus/tectech/thing/item/ElementalDefinitionScanStorage_EM.java
index 4ba1323d15..989af34749 100644
--- a/src/main/java/com/github/technus/tectech/thing/item/ElementalDefinitionScanStorage_EM.java
+++ b/src/main/java/com/github/technus/tectech/thing/item/ElementalDefinitionScanStorage_EM.java
@@ -3,8 +3,8 @@ package com.github.technus.tectech.thing.item;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.loader.ModGuiHandler;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.loader.gui.ModGuiHandler;
import com.github.technus.tectech.thing.CustomItemList;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
@@ -21,7 +21,7 @@ import net.minecraft.world.World;
import java.util.List;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
/**
* Created by Tec on 15.03.2017.
diff --git a/src/main/java/com/github/technus/tectech/thing/item/EuMeterGT.java b/src/main/java/com/github/technus/tectech/thing/item/EuMeterGT.java
index 84c43aad8f..8edcd32bdb 100644
--- a/src/main/java/com/github/technus/tectech/thing/item/EuMeterGT.java
+++ b/src/main/java/com/github/technus/tectech/thing/item/EuMeterGT.java
@@ -1,7 +1,7 @@
package com.github.technus.tectech.thing.item;
import com.github.technus.tectech.CommonValues;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.metatileentity.BaseMetaPipeEntity;
@@ -20,7 +20,7 @@ import net.minecraftforge.common.util.FakePlayer;
import java.util.ArrayList;
import java.util.List;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
public class EuMeterGT extends Item {
public static EuMeterGT INSTANCE;
diff --git a/src/main/java/com/github/technus/tectech/thing/item/FrontRotationTriggerItem.java b/src/main/java/com/github/technus/tectech/thing/item/FrontRotationTriggerItem.java
index 8f5b7e8fae..8e2a1c1a9b 100644
--- a/src/main/java/com/github/technus/tectech/thing/item/FrontRotationTriggerItem.java
+++ b/src/main/java/com/github/technus/tectech/thing/item/FrontRotationTriggerItem.java
@@ -16,7 +16,7 @@ import net.minecraftforge.common.util.FakePlayer;
import java.util.List;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
/**
* Created by Tec on 15.03.2017.
diff --git a/src/main/java/com/github/technus/tectech/thing/item/ParametrizerMemoryCard.java b/src/main/java/com/github/technus/tectech/thing/item/ParametrizerMemoryCard.java
index 883a1923a1..035b049a99 100644
--- a/src/main/java/com/github/technus/tectech/thing/item/ParametrizerMemoryCard.java
+++ b/src/main/java/com/github/technus/tectech/thing/item/ParametrizerMemoryCard.java
@@ -23,7 +23,7 @@ import net.minecraft.world.World;
import java.util.List;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
import static com.github.technus.tectech.thing.CustomItemList.parametrizerMemory;
/**
diff --git a/src/main/java/com/github/technus/tectech/thing/item/gui/ScanDisplayScreen.java b/src/main/java/com/github/technus/tectech/thing/item/gui/ScanDisplayScreen.java
index 7fe2ad0e44..753581439b 100644
--- a/src/main/java/com/github/technus/tectech/thing/item/gui/ScanDisplayScreen.java
+++ b/src/main/java/com/github/technus/tectech/thing/item/gui/ScanDisplayScreen.java
@@ -10,7 +10,7 @@ import net.minecraft.client.gui.GuiScreen;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
import static org.lwjgl.opengl.GL11.*;
/**
@@ -50,7 +50,7 @@ public class ScanDisplayScreen extends GuiScreen {
glDisable(GL_BLEND);
super.drawScreen(x,y,partialTicks);
- itick=(TecTech.Rnd.nextInt(0x66)<<16)+0x77EEFF;
+ itick=(TecTech.RANDOM.nextInt(0x66)<<16)+0x77EEFF;
int textBaseX=baseX+20;
int textBaseXX=baseX+95;
int textBaseY=baseY+28;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_DataConnector.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_DataConnector.java
index 781a74d0b2..cb88d9861d 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_DataConnector.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_DataConnector.java
@@ -2,7 +2,7 @@ package com.github.technus.tectech.thing.metaTileEntity.hatch;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.dataFramework.DataPacket;
+import com.github.technus.tectech.mechanics.dataTransport.DataPacket;
import com.github.technus.tectech.thing.metaTileEntity.pipe.IConnectsToDataPipe;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_ElementalContainer.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_ElementalContainer.java
index 714015527d..942a629f2f 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_ElementalContainer.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_ElementalContainer.java
@@ -2,9 +2,9 @@ package com.github.technus.tectech.thing.metaTileEntity.hatch;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.iElementalInstanceContainer;
-import com.github.technus.tectech.elementalMatter.core.tElementalException;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.iElementalInstanceContainer;
+import com.github.technus.tectech.mechanics.elementalMatter.core.tElementalException;
import com.github.technus.tectech.thing.metaTileEntity.pipe.IConnectsToEMpipe;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -22,7 +22,7 @@ import net.minecraft.util.EnumChatFormatting;
import net.minecraftforge.fluids.FluidStack;
import static com.github.technus.tectech.CommonValues.*;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
import static gregtech.api.enums.Dyes.MACHINE_METAL;
import static gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase.isValidMetaTileEntity;
@@ -121,7 +121,7 @@ public abstract class GT_MetaTileEntity_Hatch_ElementalContainer extends GT_Meta
if (tGTTileEntity != null && tGTTileEntity.getMetaTileEntity() instanceof GT_MetaTileEntity_Hatch_OverflowElemental) {
GT_MetaTileEntity_Hatch_OverflowElemental aMetaTileEntity = (GT_MetaTileEntity_Hatch_OverflowElemental) tGTTileEntity.getMetaTileEntity();
if (aMetaTileEntity.addOverflowMatter(overflowMatter)) {
- if (TecTech.ModConfig.BOOM_ENABLE) {
+ if (TecTech.configTecTech.BOOM_ENABLE) {
tGTTileEntity.doExplosion(V[14]);
} else {
TecTech.proxy.broadcast("Container1 BOOM! " + getBaseMetaTileEntity().getXCoord() + ' ' + getBaseMetaTileEntity().getYCoord() + ' ' + getBaseMetaTileEntity().getZCoord());
@@ -131,7 +131,7 @@ public abstract class GT_MetaTileEntity_Hatch_ElementalContainer extends GT_Meta
overflowMatter = 0F;
}
} else if (deathDelay < 1) {
- if (TecTech.ModConfig.BOOM_ENABLE) {
+ if (TecTech.configTecTech.BOOM_ENABLE) {
getBaseMetaTileEntity().doExplosion(V[14]);
} else {
deathDelay=3;
@@ -218,7 +218,7 @@ public abstract class GT_MetaTileEntity_Hatch_ElementalContainer extends GT_Meta
@Override
public String[] getInfoData() {
- if(TecTech.ModConfig.EASY_SCAN) {
+ if(TecTech.configTecTech.EASY_SCAN) {
if (id > 0) {
if (content == null || content.size() == 0) {
return new String[]{"ID: " + EnumChatFormatting.AQUA + id, "No Stacks"};
@@ -271,7 +271,7 @@ public abstract class GT_MetaTileEntity_Hatch_ElementalContainer extends GT_Meta
@Override
public void onRemoval() {
if (isValidMetaTileEntity(this) && getBaseMetaTileEntity().isActive()) {
- if (TecTech.ModConfig.BOOM_ENABLE) {
+ if (TecTech.configTecTech.BOOM_ENABLE) {
getBaseMetaTileEntity().doExplosion(V[15]);
} else {
TecTech.proxy.broadcast("BOOM! " + getBaseMetaTileEntity().getXCoord() + ' ' + getBaseMetaTileEntity().getYCoord() + ' ' + getBaseMetaTileEntity().getZCoord());
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_InputData.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_InputData.java
index 1630da20d9..8ea024d6dd 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_InputData.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_InputData.java
@@ -1,7 +1,7 @@
package com.github.technus.tectech.thing.metaTileEntity.hatch;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.dataFramework.QuantumDataPacket;
+import com.github.technus.tectech.mechanics.dataTransport.QuantumDataPacket;
import com.github.technus.tectech.thing.metaTileEntity.pipe.IConnectsToDataPipe;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_InputDataItems.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_InputDataItems.java
index 24d4479f38..80498ed8df 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_InputDataItems.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_InputDataItems.java
@@ -2,7 +2,7 @@ package com.github.technus.tectech.thing.metaTileEntity.hatch;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.dataFramework.InventoryDataPacket;
+import com.github.technus.tectech.mechanics.dataTransport.InventoryDataPacket;
import com.github.technus.tectech.thing.metaTileEntity.pipe.IConnectsToDataPipe;
import gregtech.api.enums.Dyes;
import gregtech.api.interfaces.ITexture;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OutputData.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OutputData.java
index d87374cd6d..d0e5399f75 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OutputData.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OutputData.java
@@ -1,7 +1,7 @@
package com.github.technus.tectech.thing.metaTileEntity.hatch;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.dataFramework.QuantumDataPacket;
+import com.github.technus.tectech.mechanics.dataTransport.QuantumDataPacket;
import com.github.technus.tectech.thing.metaTileEntity.pipe.GT_MetaTileEntity_Pipe_Data;
import com.github.technus.tectech.thing.metaTileEntity.pipe.IConnectsToDataPipe;
import gregtech.api.interfaces.ITexture;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OutputDataItems.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OutputDataItems.java
index 147a6ac2d3..82bda9d326 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OutputDataItems.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OutputDataItems.java
@@ -1,7 +1,7 @@
package com.github.technus.tectech.thing.metaTileEntity.hatch;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.dataFramework.InventoryDataPacket;
+import com.github.technus.tectech.mechanics.dataTransport.InventoryDataPacket;
import com.github.technus.tectech.thing.metaTileEntity.pipe.GT_MetaTileEntity_Pipe_Data;
import com.github.technus.tectech.thing.metaTileEntity.pipe.IConnectsToDataPipe;
import gregtech.api.interfaces.ITexture;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OverflowElemental.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OverflowElemental.java
index ce6a4a553c..867f814b63 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OverflowElemental.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_OverflowElemental.java
@@ -202,7 +202,7 @@ public class GT_MetaTileEntity_Hatch_OverflowElemental extends GT_MetaTileEntity
@Override
public void onRemoval() {
if (isValidMetaTileEntity(this) && getBaseMetaTileEntity().isActive()) {
- if (TecTech.ModConfig.BOOM_ENABLE) {
+ if (TecTech.configTecTech.BOOM_ENABLE) {
getBaseMetaTileEntity().doExplosion(V[15]);
} else {
TecTech.proxy.broadcast("Muffler BOOM! " + getBaseMetaTileEntity().getXCoord() + ' ' + getBaseMetaTileEntity().getYCoord() + ' ' + getBaseMetaTileEntity().getZCoord());
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Rack.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Rack.java
index 79b2295909..fbdd63ed7f 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Rack.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Rack.java
@@ -3,6 +3,7 @@ package com.github.technus.tectech.thing.metaTileEntity.hatch;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.thing.metaTileEntity.hatch.gui.GT_Container_Rack;
import com.github.technus.tectech.thing.metaTileEntity.hatch.gui.GT_GUIContainer_Rack;
import cpw.mods.fml.common.Loader;
@@ -27,7 +28,7 @@ import java.util.Map;
import static com.github.technus.tectech.CommonValues.MULTI_CHECK_AT;
import static com.github.technus.tectech.Util.getUniqueIdentifier;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
/**
* Created by Tec on 03.04.2017.
@@ -164,8 +165,8 @@ public class GT_MetaTileEntity_Hatch_Rack extends GT_MetaTileEntity_Hatch {
} else if (comp.subZero || this.heat >= 0) {
heat += (1f + comp.coEff * this.heat / 10000f) * (comp.heat > 0 ? comp.heat * overclock * overclock * overvolt : comp.heat);
//=MAX(0;MIN(MIN($B4;1*C$3+C$3-0,25);1+RAND()+(C$3-1)-($B4-1)/2))
- if (overvolt * 10f > 7f + TecTech.Rnd.nextFloat()) {
- computation += comp.computation * Math.max(0, Math.min(Math.min(overclock, overvolt + overvolt - 0.25), 1 + TecTech.Rnd.nextFloat() + (overvolt - 1) - (overclock - 1) / 2));
+ if (overvolt * 10f > 7f + TecTech.RANDOM.nextFloat()) {
+ computation += comp.computation * Math.max(0, Math.min(Math.min(overclock, overvolt + overvolt - 0.25), 1 + TecTech.RANDOM.nextFloat() + (overvolt - 1) - (overclock - 1) / 2));
}
}
} else {
@@ -184,7 +185,7 @@ public class GT_MetaTileEntity_Hatch_Rack extends GT_MetaTileEntity_Hatch {
}
public int tickComponents(float oc, float ov) {
- if (oc > 3 + TecTech.Rnd.nextFloat() || ov > 2 + TecTech.Rnd.nextFloat()) {
+ if (oc > 3 + TecTech.RANDOM.nextFloat() || ov > 2 + TecTech.RANDOM.nextFloat()) {
getBaseMetaTileEntity().setToFire();
}
overClock = oc;
@@ -283,7 +284,7 @@ public class GT_MetaTileEntity_Hatch_Rack extends GT_MetaTileEntity_Hatch {
new RackComponent("IC2:ic2.reactorVentGold", 0, -1, 40f, 5000, false);
new RackComponent("IC2:ic2.reactorVentDiamond", 0, -1, 80f, 10000, false);//2x oc
- if (Loader.isModLoaded("dreamcraft")) {
+ if (Loader.isModLoaded(Reference.DREAMCRAFT)) {
new RackComponent("dreamcraft:item.HighEnergyCircuitParts", 3, 2, -.1f, 9001, true);
new RackComponent("dreamcraft:item.HighEnergyFlowCircuit", 24, 16, -.25f, 10000, true);
new RackComponent("dreamcraft:item.NanoCircuit", 32, 20, -.15f, 8000, true);
@@ -334,7 +335,7 @@ public class GT_MetaTileEntity_Hatch_Rack extends GT_MetaTileEntity_Hatch {
this.subZero = subZero;
componentBinds.put(unlocalizedName, this);
if (DEBUG_MODE) {
- TecTech.Logger.info("Component registered: " + unlocalizedName);
+ TecTech.LOGGER.info("Component registered: " + unlocalizedName);
}
}
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Uncertainty.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Uncertainty.java
index e1cc08df03..361b9c678f 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Uncertainty.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Uncertainty.java
@@ -197,7 +197,7 @@ public class GT_MetaTileEntity_Hatch_Uncertainty extends GT_MetaTileEntity_Hatch
public void regenerate() {
for (int i = 0; i < matrix.length; i++) {
- matrix[i] = (short) TecTech.Rnd.nextInt(1000);
+ matrix[i] = (short) TecTech.RANDOM.nextInt(1000);
}
}
@@ -271,7 +271,7 @@ public class GT_MetaTileEntity_Hatch_Uncertainty extends GT_MetaTileEntity_Hatch
}
private void shift() {
- int i = TecTech.Rnd.nextInt(16), j = TecTech.Rnd.nextInt(128);
+ int i = TecTech.RANDOM.nextInt(16), j = TecTech.RANDOM.nextInt(128);
matrix[i] += ((matrix[i] & 1) == 0 ? 2 : -2) * j >> 5;
matrix[i] += j == 0 ? 1 : 0;
if (matrix[i] < 0) {
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/gui/GT_GUIContainer_Uncertainty.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/gui/GT_GUIContainer_Uncertainty.java
index f5fe2bd002..e003774f13 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/gui/GT_GUIContainer_Uncertainty.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/gui/GT_GUIContainer_Uncertainty.java
@@ -99,7 +99,7 @@ public class GT_GUIContainer_Uncertainty extends GT_GUIContainerMetaTile_Machine
x -= 6;
y -= 6;
for (int i = 0; i < 16; i++) {
- if (TecTech.Rnd.nextInt(1000) < ((GT_Container_Uncertainty) mContainer).matrix[i]) {
+ if (TecTech.RANDOM.nextInt(1000) < ((GT_Container_Uncertainty) mContainer).matrix[i]) {
drawTexturedModalRect(x + 12 * (i / 4), y + 12 * (i % 4), fU + 12 * (i / 4), V + 12 * (i % 4), 10, 10);
}
}
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_computer.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_computer.java
index 5ca43cd7d0..c021f93260 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_computer.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_computer.java
@@ -4,7 +4,7 @@ import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
import com.github.technus.tectech.Vec3pos;
-import com.github.technus.tectech.dataFramework.QuantumDataPacket;
+import com.github.technus.tectech.mechanics.dataTransport.QuantumDataPacket;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_InputData;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_OutputData;
@@ -30,7 +30,7 @@ import java.util.ArrayList;
import static com.github.technus.tectech.CommonValues.V;
import static com.github.technus.tectech.Util.StructureBuilderExtreme;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
import static com.github.technus.tectech.thing.casing.GT_Block_CasingsTT.textureOffset;
import static com.github.technus.tectech.thing.casing.GT_Block_CasingsTT.texturePage;
import static com.github.technus.tectech.thing.casing.TT_Container_Casings.sBlockCasingsTT;
@@ -349,7 +349,7 @@ public class GT_MetaTileEntity_EM_computer extends GT_MetaTileEntity_MultiblockB
public String[] getDescription() {
return new String[]{
CommonValues.TEC_MARK_EM,
- Util.intBitsToString(TecTech.Rnd.nextInt()),
+ Util.intBitsToString(TecTech.RANDOM.nextInt()),
EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD + "You need it to process the number above"
};
}
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_dataBank.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_dataBank.java
index c5760cb284..da2e06c873 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_dataBank.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_dataBank.java
@@ -1,9 +1,9 @@
package com.github.technus.tectech.thing.metaTileEntity.multi;
import com.github.technus.tectech.CommonValues;
-import com.github.technus.tectech.auxiliary.Reference;
-import com.github.technus.tectech.auxiliary.TecTechConfig;
-import com.github.technus.tectech.dataFramework.InventoryDataPacket;
+import com.github.technus.tectech.Reference;
+import com.github.technus.tectech.loader.TecTechConfig;
+import com.github.technus.tectech.mechanics.dataTransport.InventoryDataPacket;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_InputDataItems;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_OutputDataItems;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_decay.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_decay.java
index dc03493b1a..7ebf025f40 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_decay.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_decay.java
@@ -1,8 +1,8 @@
package com.github.technus.tectech.thing.metaTileEntity.multi;
import com.github.technus.tectech.CommonValues;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_EnergyMulti;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_InputElemental;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_dequantizer.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_dequantizer.java
index 43d18386f4..5f102c94ab 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_dequantizer.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_dequantizer.java
@@ -1,11 +1,11 @@
package com.github.technus.tectech.thing.metaTileEntity.multi;
import com.github.technus.tectech.CommonValues;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.transformations.aOredictDequantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.iExchangeInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aOredictDequantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.iExchangeInfo;
import com.github.technus.tectech.thing.block.QuantumGlassBlock;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_InputElemental;
@@ -25,9 +25,9 @@ import java.util.ArrayList;
import static com.github.technus.tectech.CommonValues.V;
import static com.github.technus.tectech.Util.StructureBuilderExtreme;
-import static com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition.STABLE_RAW_LIFE_TIME;
-import static com.github.technus.tectech.elementalMatter.definitions.complex.atom.dAtomDefinition.refMass;
-import static com.github.technus.tectech.elementalMatter.definitions.complex.atom.dAtomDefinition.refUnstableMass;
+import static com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition.STABLE_RAW_LIFE_TIME;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.dAtomDefinition.refMass;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.dAtomDefinition.refUnstableMass;
import static com.github.technus.tectech.thing.casing.GT_Block_CasingsTT.textureOffset;
import static com.github.technus.tectech.thing.casing.TT_Container_Casings.sBlockCasingsTT;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_infuser.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_infuser.java
index 693ea770e4..6e32226fbd 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_infuser.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_infuser.java
@@ -3,7 +3,7 @@ package com.github.technus.tectech.thing.metaTileEntity.multi;
import cofh.api.energy.IEnergyContainerItem;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_Container_MultiMachineEM;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_GUIContainer_MultiMachineEM;
@@ -22,7 +22,7 @@ import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.ResourceLocation;
import static com.github.technus.tectech.Util.StructureBuilderExtreme;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
import static com.github.technus.tectech.thing.casing.GT_Block_CasingsTT.textureOffset;
import static com.github.technus.tectech.thing.casing.TT_Container_Casings.sBlockCasingsTT;
import static gregtech.api.GregTech_API.mEUtoRF;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_quantizer.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_quantizer.java
index dbf8232ef1..65ba6a19ff 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_quantizer.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_quantizer.java
@@ -2,14 +2,14 @@ package com.github.technus.tectech.thing.metaTileEntity.multi;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.auxiliary.Reference;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.iHasElementalDefinition;
-import com.github.technus.tectech.elementalMatter.core.transformations.aFluidQuantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.aItemQuantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.aOredictQuantizationInfo;
-import com.github.technus.tectech.elementalMatter.core.transformations.bTransformationInfo;
+import com.github.technus.tectech.Reference;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.iHasElementalDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aFluidQuantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aItemQuantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.aOredictQuantizationInfo;
+import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.bTransformationInfo;
import com.github.technus.tectech.thing.block.QuantumGlassBlock;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_MetaTileEntity_MultiblockBase_EM;
@@ -30,11 +30,11 @@ import java.util.ArrayList;
import static com.github.technus.tectech.CommonValues.V;
import static com.github.technus.tectech.Util.StructureBuilderExtreme;
import static com.github.technus.tectech.Util.isInputEqual;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
-import static com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition.DEFAULT_ENERGY_LEVEL;
-import static com.github.technus.tectech.elementalMatter.core.templates.iElementalDefinition.STABLE_RAW_LIFE_TIME;
-import static com.github.technus.tectech.elementalMatter.definitions.complex.atom.dAtomDefinition.refMass;
-import static com.github.technus.tectech.elementalMatter.definitions.complex.atom.dAtomDefinition.refUnstableMass;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition.DEFAULT_ENERGY_LEVEL;
+import static com.github.technus.tectech.mechanics.elementalMatter.core.templates.iElementalDefinition.STABLE_RAW_LIFE_TIME;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.dAtomDefinition.refMass;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.dAtomDefinition.refUnstableMass;
import static com.github.technus.tectech.thing.casing.GT_Block_CasingsTT.textureOffset;
import static com.github.technus.tectech.thing.casing.TT_Container_Casings.sBlockCasingsTT;
@@ -126,7 +126,7 @@ public class GT_MetaTileEntity_EM_quantizer extends GT_MetaTileEntity_Multiblock
int[] oreIDs = OreDictionary.getOreIDs(is);
for (int ID : oreIDs) {
if (DEBUG_MODE) {
- TecTech.Logger.info("Quantifier-Ore-recipe " + is.getItem().getUnlocalizedName() + '.' + is.getItemDamage() + ' ' + OreDictionary.getOreName(ID));
+ TecTech.LOGGER.info("Quantifier-Ore-recipe " + is.getItem().getUnlocalizedName() + '.' + is.getItemDamage() + ' ' + OreDictionary.getOreName(ID));
}
aOredictQuantizationInfo aOQI = bTransformationInfo.oredictQuantization.get(ID);
if (aOQI == null) {
@@ -141,7 +141,7 @@ public class GT_MetaTileEntity_EM_quantizer extends GT_MetaTileEntity_Multiblock
} else {
//Do ITEM STACK quantization
if (DEBUG_MODE) {
- TecTech.Logger.info("Quantifier-Item-recipe " + is.getItem().getUnlocalizedName() + '.' + is.getItemDamage());
+ TecTech.LOGGER.info("Quantifier-Item-recipe " + is.getItem().getUnlocalizedName() + '.' + is.getItemDamage());
}
iHasElementalDefinition into = aIQI.output();
if (into != null && isInputEqual(true, false, GT_MetaTileEntity_MultiblockBase_EM.nothingF, new ItemStack[]{new ItemStack(is.getItem(), aIQI.input().stackSize, is.getItemDamage())}, null, inI)) {
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_research.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_research.java
index d8a0cd4cad..91d2bca9a2 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_research.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_research.java
@@ -1,7 +1,7 @@
package com.github.technus.tectech.thing.metaTileEntity.multi;
import com.github.technus.tectech.CommonValues;
-import com.github.technus.tectech.auxiliary.TecTechConfig;
+import com.github.technus.tectech.loader.TecTechConfig;
import com.github.technus.tectech.recipe.TT_recipe;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_EnergyMulti;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_scanner.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_scanner.java
index 6e83f544a3..b2711530ed 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_scanner.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_scanner.java
@@ -2,10 +2,10 @@ package com.github.technus.tectech.thing.metaTileEntity.multi;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.core.tElementalException;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.tElementalException;
import com.github.technus.tectech.recipe.TT_recipe;
import com.github.technus.tectech.thing.CustomItemList;
import com.github.technus.tectech.thing.block.QuantumGlassBlock;
@@ -33,8 +33,8 @@ import static com.github.technus.tectech.CommonValues.V;
import static com.github.technus.tectech.CommonValues.VN;
import static com.github.technus.tectech.Util.StructureBuilderExtreme;
import static com.github.technus.tectech.Util.areBitsSet;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
-import static com.github.technus.tectech.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__;
import static com.github.technus.tectech.recipe.TT_recipe.E_RECIPE_ID;
import static com.github.technus.tectech.thing.casing.GT_Block_CasingsTT.textureOffset;
import static com.github.technus.tectech.thing.casing.TT_Container_Casings.sBlockCasingsTT;
@@ -266,7 +266,7 @@ public class GT_MetaTileEntity_EM_scanner extends GT_MetaTileEntity_MultiblockBa
totalComputationRequired =0;
eRequiredData=0;
- eAmpereFlow=objectsScanned.size() + TecTech.Rnd.next(objectsScanned.size());
+ eAmpereFlow=objectsScanned.size() + TecTech.RANDOM.next(objectsScanned.size());
mEUt=-(int)V[8];
//get depth scan complexity array
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_switch.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_switch.java
index 175132254c..242f28011f 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_switch.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_switch.java
@@ -2,8 +2,8 @@ package com.github.technus.tectech.thing.metaTileEntity.multi;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.Vec3pos;
-import com.github.technus.tectech.auxiliary.Reference;
-import com.github.technus.tectech.dataFramework.QuantumDataPacket;
+import com.github.technus.tectech.Reference;
+import com.github.technus.tectech.mechanics.dataTransport.QuantumDataPacket;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_InputData;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_OutputData;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_transformer.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_transformer.java
index 50b19a2d68..4584e86122 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_transformer.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_transformer.java
@@ -1,7 +1,7 @@
package com.github.technus.tectech.thing.metaTileEntity.multi;
import com.github.technus.tectech.CommonValues;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_Container_MultiMachineEM;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_GUIContainer_MultiMachineEM;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_microwave.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_microwave.java
index 68e6e53afc..67c390ab7c 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_microwave.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_microwave.java
@@ -1,7 +1,7 @@
package com.github.technus.tectech.thing.metaTileEntity.multi;
import com.github.technus.tectech.CommonValues;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_Container_MultiMachineEM;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_GUIContainer_MultiMachineEM;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_teslaCoil.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_teslaCoil.java
index a3ac01f471..82722e76f9 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_teslaCoil.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_teslaCoil.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
import static com.github.technus.tectech.CommonValues.V;
import static com.github.technus.tectech.Util.StructureBuilder;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
import static com.github.technus.tectech.thing.casing.GT_Block_CasingsTT.texturePage;
import static gregtech.api.GregTech_API.*;
import static gregtech.api.enums.GT_Values.E;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java
index b819085331..34e3f74574 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java
@@ -2,11 +2,11 @@ package com.github.technus.tectech.thing.metaTileEntity.multi.base;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Vec3pos;
-import com.github.technus.tectech.auxiliary.Reference;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalDefinitionStack;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.core.tElementalException;
+import com.github.technus.tectech.Reference;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalDefinitionStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.core.tElementalException;
import com.github.technus.tectech.thing.metaTileEntity.IFrontRotation;
import com.github.technus.tectech.thing.metaTileEntity.hatch.*;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.network.RotationMessage;
@@ -44,7 +44,7 @@ import java.util.Map;
import static com.github.technus.tectech.CommonValues.*;
import static com.github.technus.tectech.Util.StructureCheckerExtreme;
import static com.github.technus.tectech.Util.getTier;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
import static com.github.technus.tectech.thing.casing.GT_Block_CasingsTT.texturePage;
/**
@@ -1909,10 +1909,10 @@ public abstract class GT_MetaTileEntity_MultiblockBase_EM extends GT_MetaTileEnt
EUtTierVoltage > maxEUinputMax || //TIER IS BASED ON BEST HATCH! not total EUtEffective input
(EUtTierVoltage*Amperes - 1) / maxEUinputMin + 1 > eMaxAmpereFlow) {// EUuse==0? --> (EUuse - 1) / maxEUinputMin + 1 = 1! //if not too much A
if (DEBUG_MODE) {
- TecTech.Logger.debug("L1 " + EUuse + ' ' + getEUVar() + ' ' + (EUuse > getEUVar()));
- TecTech.Logger.debug("L2 " + EUtEffective + ' ' + maxEUinputMax + ' ' + (EUtEffective > maxEUinputMax));
- TecTech.Logger.debug("L3 " + EUuse + ' ' + eMaxAmpereFlow);
- TecTech.Logger.debug("L4 " + ((EUuse - 1) / maxEUinputMin + 1) + ' ' + eMaxAmpereFlow + ' ' + ((EUuse - 1) / maxEUinputMin + 1 > eMaxAmpereFlow));
+ TecTech.LOGGER.debug("L1 " + EUuse + ' ' + getEUVar() + ' ' + (EUuse > getEUVar()));
+ TecTech.LOGGER.debug("L2 " + EUtEffective + ' ' + maxEUinputMax + ' ' + (EUtEffective > maxEUinputMax));
+ TecTech.LOGGER.debug("L3 " + EUuse + ' ' + eMaxAmpereFlow);
+ TecTech.LOGGER.debug("L4 " + ((EUuse - 1) / maxEUinputMin + 1) + ' ' + eMaxAmpereFlow + ' ' + ((EUuse - 1) / maxEUinputMin + 1 > eMaxAmpereFlow));
}
return false;
}
@@ -2121,7 +2121,7 @@ public abstract class GT_MetaTileEntity_MultiblockBase_EM extends GT_MetaTileEnt
return;
}
explodedThisTick=true;
- if (!TecTech.ModConfig.BOOM_ENABLE) {
+ if (!TecTech.configTecTech.BOOM_ENABLE) {
TecTech.proxy.broadcast("Multi Explode BOOM! " + getBaseMetaTileEntity().getXCoord() + ' ' + getBaseMetaTileEntity().getYCoord() + ' ' + getBaseMetaTileEntity().getZCoord());
StackTraceElement[] ste = Thread.currentThread().getStackTrace();
TecTech.proxy.broadcast("Multi Explode BOOM! " + ste[2].toString());
@@ -2187,7 +2187,7 @@ public abstract class GT_MetaTileEntity_MultiblockBase_EM extends GT_MetaTileEnt
@Override
public void doExplosion(long aExplosionPower) {
explodeMultiblock();
- if (!TecTech.ModConfig.BOOM_ENABLE) {
+ if (!TecTech.configTecTech.BOOM_ENABLE) {
TecTech.proxy.broadcast("Multi DoExplosion BOOM! " + getBaseMetaTileEntity().getXCoord() + ' ' + getBaseMetaTileEntity().getYCoord() + ' ' + getBaseMetaTileEntity().getZCoord());
StackTraceElement[] ste = Thread.currentThread().getStackTrace();
TecTech.proxy.broadcast("Multi DoExplosion BOOM! " + ste[2].toString());
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/network/RotationPacketDispatcher.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/network/RotationPacketDispatcher.java
index a9895b30f5..29a8f0bcf6 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/network/RotationPacketDispatcher.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/network/RotationPacketDispatcher.java
@@ -2,7 +2,7 @@ package com.github.technus.tectech.thing.metaTileEntity.multi.base.network;
import eu.usrv.yamcore.network.PacketDispatcher;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
public class RotationPacketDispatcher extends PacketDispatcher {
public static RotationPacketDispatcher INSTANCE;
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Centrifuge.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Centrifuge.java
index 4525d270b9..4b7d41494b 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Centrifuge.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Centrifuge.java
@@ -1,9 +1,9 @@
package com.github.technus.tectech.thing.metaTileEntity.multi.em_machine;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.definitions.complex.atom.dAtomDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.dAtomDefinition;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_MetaTileEntity_MultiblockBase_EM;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.MultiblockControl;
@@ -12,7 +12,7 @@ import java.util.Arrays;
import java.util.Comparator;
import static com.github.technus.tectech.CommonValues.V;
-import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
+import static com.github.technus.tectech.loader.TecTechConfig.DEBUG_MODE;
/**
* Created by danie_000 on 24.12.2017.
@@ -141,8 +141,8 @@ public class Behaviour_Centrifuge extends GT_MetaTileEntity_EM_machine.Behaviour
}
float excessMass = 0;
while (inputMass > maxCapacity) {
- cElementalInstanceStack randomStack = stacks[TecTech.Rnd.nextInt(stacks.length)];
- int amountToRemove = TecTech.Rnd.nextInt((int) randomStack.getAmount()) + 1;
+ cElementalInstanceStack randomStack = stacks[TecTech.RANDOM.nextInt(stacks.length)];
+ int amountToRemove = TecTech.RANDOM.nextInt((int) randomStack.getAmount()) + 1;
randomStack.amount -= amountToRemove;//mutates the parent InstanceStackMap
if (randomStack.amount <= 0) {
input.remove(randomStack.definition);
@@ -167,7 +167,7 @@ public class Behaviour_Centrifuge extends GT_MetaTileEntity_EM_machine.Behaviour
//mixing factor...
double mixingFactor=Math.min(1d-(RCF/maxRCF)*(1d-MIXING_FACTORS[tier-5][fractionCount-2]),1);
if(DEBUG_MODE){
- TecTech.Logger.info("mixingFactor "+mixingFactor);
+ TecTech.LOGGER.info("mixingFactor "+mixingFactor);
}
int mEut = (int) (Math.pow(checkedAndFixedParameters[0] / maxRPM, 3f) * V[tier]);
@@ -203,11 +203,11 @@ public class Behaviour_Centrifuge extends GT_MetaTileEntity_EM_machine.Behaviour
}
}
//if(DEBUG_MODE){
- // TecTech.Logger.info("absMass "+absMassPerOutput);
+ // TecTech.LOGGER.info("absMass "+absMassPerOutput);
//}
absMassPerOutput /= fractionCount;
if(DEBUG_MODE){
- TecTech.Logger.info("absMassPerOutput "+absMassPerOutput);
+ TecTech.LOGGER.info("absMassPerOutput "+absMassPerOutput);
}
nextFraction:
@@ -218,10 +218,10 @@ public class Behaviour_Centrifuge extends GT_MetaTileEntity_EM_machine.Behaviour
double stackMass = Math.abs(stacks[stackNo].getMass());
long amount = (long) (remaining/Math.abs(stacks[stackNo].definition.getMass()));
//if(DEBUG_MODE){
- // TecTech.Logger.info("stackMass "+stackMass);
- // TecTech.Logger.info("defMass "+stacks[stackNo].definition.getMass());
- // TecTech.Logger.info("remaining "+remaining);
- // TecTech.Logger.info("amountToMoveAvailable "+amount+"/"+stacks[stackNo].amount);
+ // TecTech.LOGGER.info("stackMass "+stackMass);
+ // TecTech.LOGGER.info("defMass "+stacks[stackNo].definition.getMass());
+ // TecTech.LOGGER.info("remaining "+remaining);
+ // TecTech.LOGGER.info("amountToMoveAvailable "+amount+"/"+stacks[stackNo].amount);
//}
if (stackMass == 0) {
addRandomly(stacks[stackNo], outputs, fractionCount);
@@ -237,8 +237,8 @@ public class Behaviour_Centrifuge extends GT_MetaTileEntity_EM_machine.Behaviour
outputs[fraction].putUnify(clone);
stacks[stackNo].amount-=amount;
//if(DEBUG_MODE){
- // TecTech.Logger.info("remainingAfter "+remaining);
- // TecTech.Logger.info("amountCloneAfter "+clone.amount+"/"+stacks[stackNo].amount);
+ // TecTech.LOGGER.info("remainingAfter "+remaining);
+ // TecTech.LOGGER.info("amountCloneAfter "+clone.amount+"/"+stacks[stackNo].amount);
//}
} else {
continue nextFraction;
@@ -272,8 +272,8 @@ public class Behaviour_Centrifuge extends GT_MetaTileEntity_EM_machine.Behaviour
}
int remainingAmount = (int) (me.amount % fractionCount);
while (remainingAmount > 0) {
- int amountToAdd = TecTech.Rnd.nextInt(remainingAmount) + 1;
- stacks[TecTech.Rnd.nextInt(fractionCount)].amount += amountToAdd;
+ int amountToAdd = TecTech.RANDOM.nextInt(remainingAmount) + 1;
+ stacks[TecTech.RANDOM.nextInt(fractionCount)].amount += amountToAdd;
remainingAmount -= amountToAdd;
}
}
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Electrolyzer.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Electrolyzer.java
index cf3282b117..9fe54588bc 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Electrolyzer.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Electrolyzer.java
@@ -1,6 +1,6 @@
package com.github.technus.tectech.thing.metaTileEntity.multi.em_machine;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.MultiblockControl;
/**
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_ElectromagneticSeparator.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_ElectromagneticSeparator.java
index 1c7951e571..8c912dd38d 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_ElectromagneticSeparator.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_ElectromagneticSeparator.java
@@ -1,9 +1,9 @@
package com.github.technus.tectech.thing.metaTileEntity.multi.em_machine;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.definitions.complex.atom.dAtomDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.atom.dAtomDefinition;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_MetaTileEntity_MultiblockBase_EM;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.MultiblockControl;
@@ -187,8 +187,8 @@ public class Behaviour_ElectromagneticSeparator extends GT_MetaTileEntity_EM_mac
}
float excessMass = 0;
while (inputMass > maxCapacity) {
- cElementalInstanceStack randomStack = stacks[TecTech.Rnd.nextInt(stacks.length)];
- int amountToRemove = TecTech.Rnd.nextInt((int) randomStack.getAmount()) + 1;
+ cElementalInstanceStack randomStack = stacks[TecTech.RANDOM.nextInt(stacks.length)];
+ int amountToRemove = TecTech.RANDOM.nextInt((int) randomStack.getAmount()) + 1;
randomStack.amount -= amountToRemove;//mutates the parent InstanceStackMap
if (randomStack.amount <= 0) {
input.remove(randomStack.definition);
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_PrecisionLaser.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_PrecisionLaser.java
index efe84e10ec..bae032cd9e 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_PrecisionLaser.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_PrecisionLaser.java
@@ -1,6 +1,6 @@
package com.github.technus.tectech.thing.metaTileEntity.multi.em_machine;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.MultiblockControl;
/**
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Recycler.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Recycler.java
index 49b598cbc2..4f6d555fdc 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Recycler.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Recycler.java
@@ -1,6 +1,6 @@
package com.github.technus.tectech.thing.metaTileEntity.multi.em_machine;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.MultiblockControl;
/**
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Scanner.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Scanner.java
index aff35cd7fa..32d8b81fdd 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Scanner.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/Behaviour_Scanner.java
@@ -1,6 +1,6 @@
package com.github.technus.tectech.thing.metaTileEntity.multi.em_machine;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.MultiblockControl;
/**
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/GT_MetaTileEntity_EM_machine.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/GT_MetaTileEntity_EM_machine.java
index ff67263eab..46e4ede660 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/GT_MetaTileEntity_EM_machine.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/em_machine/GT_MetaTileEntity_EM_machine.java
@@ -3,7 +3,7 @@ package com.github.technus.tectech.thing.metaTileEntity.multi.em_machine;
import com.github.technus.tectech.CommonValues;
import com.github.technus.tectech.TecTech;
import com.github.technus.tectech.Util;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
import com.github.technus.tectech.thing.block.QuantumGlassBlock;
import com.github.technus.tectech.thing.block.QuantumStuffBlock;
import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
@@ -369,7 +369,7 @@ public class GT_MetaTileEntity_EM_machine extends GT_MetaTileEntity_MultiblockBa
public static void registerBehaviour(Behaviour behaviour, ItemStack is) {
map.put(new Util.TT_ItemStack(is), behaviour);
- TecTech.Logger.info("Registered EM machine behaviour "+behaviour.getClass().getSimpleName()+' '+new Util.TT_ItemStack(is).toString());
+ TecTech.LOGGER.info("Registered EM machine behaviour "+behaviour.getClass().getSimpleName()+' '+new Util.TT_ItemStack(is).toString());
}
public static abstract class Behaviour {
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/single/GT_MetaTileEntity_DataReader.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/single/GT_MetaTileEntity_DataReader.java
index 89e495adcc..6612167e5f 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/single/GT_MetaTileEntity_DataReader.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/single/GT_MetaTileEntity_DataReader.java
@@ -31,7 +31,7 @@ import java.util.HashMap;
import java.util.Map;
import static com.github.technus.tectech.CommonValues.V;
-import static com.github.technus.tectech.auxiliary.Reference.MODID;
+import static com.github.technus.tectech.Reference.MODID;
/**
* Created by Tec on 23.03.2017.
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/single/GT_MetaTileEntity_DebugStructureWriter.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/single/GT_MetaTileEntity_DebugStructureWriter.java
index 5c1cec00f4..2e2e4f032a 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/single/GT_MetaTileEntity_DebugStructureWriter.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/single/GT_MetaTileEntity_DebugStructureWriter.java
@@ -106,7 +106,7 @@ public class GT_MetaTileEntity_DebugStructureWriter extends GT_MetaTileEntity_Ti
if (aBaseMetaTileEntity.isAllowedToWork()) {
result = StructureWriter(getBaseMetaTileEntity(), numbers[0], numbers[1], numbers[2], numbers[3], numbers[4], numbers[5], false);
for (String s : result) {
- TecTech.Logger.info(s);
+ TecTech.LOGGER.info(s);
}
aBaseMetaTileEntity.disableWorking();
}
@@ -116,7 +116,7 @@ public class GT_MetaTileEntity_DebugStructureWriter extends GT_MetaTileEntity_Ti
public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) {
result = StructureWriter(getBaseMetaTileEntity(), numbers[0], numbers[1], numbers[2], numbers[3], numbers[4], numbers[5], true);
for (String s : result) {
- TecTech.Logger.info(s);
+ TecTech.LOGGER.info(s);
}
}
@@ -127,7 +127,7 @@ public class GT_MetaTileEntity_DebugStructureWriter extends GT_MetaTileEntity_Ti
}
aBaseMetaTileEntity.openGUI(aPlayer);
//if (TecTechConfig.DEBUG_MODE && aPlayer.getHeldItem() != null)
- // TecTech.Logger.info("UnlocalizedName: " + getUniqueIdentifier(aPlayer.getHeldItem()));
+ // TecTech.LOGGER.info("UnlocalizedName: " + getUniqueIdentifier(aPlayer.getHeldItem()));
return true;
}
diff --git a/src/main/java/com/github/technus/tectech/thing/tileEntity/ReactorSimTileEntity.java b/src/main/java/com/github/technus/tectech/thing/tileEntity/ReactorSimTileEntity.java
index e9d8694957..4d66b28ca6 100644
--- a/src/main/java/com/github/technus/tectech/thing/tileEntity/ReactorSimTileEntity.java
+++ b/src/main/java/com/github/technus/tectech/thing/tileEntity/ReactorSimTileEntity.java
@@ -1,6 +1,6 @@
package com.github.technus.tectech.thing.tileEntity;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import ic2.api.energy.event.EnergyTileUnloadEvent;
import ic2.core.IC2;
import ic2.core.block.reactor.tileentity.TileEntityNuclearReactorElectric;
diff --git a/src/main/java/openmodularturrets/blocks/turretbases/TurretBaseEM.java b/src/main/java/openmodularturrets/blocks/turretbases/TurretBaseEM.java
index d79ab16f12..aead67cb22 100644
--- a/src/main/java/openmodularturrets/blocks/turretbases/TurretBaseEM.java
+++ b/src/main/java/openmodularturrets/blocks/turretbases/TurretBaseEM.java
@@ -1,7 +1,6 @@
package openmodularturrets.blocks.turretbases;
-import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
@@ -10,6 +9,8 @@ import net.minecraft.world.World;
import openmodularturrets.handler.ConfigHandler;
import openmodularturrets.tileentity.turretbase.TileTurretBaseEM;
+import static com.github.technus.tectech.loader.gui.CreativeTabTecTech.creativeTabTecTech;
+
/**
* Created by Bass on 27/07/2017.
*/
@@ -19,7 +20,7 @@ public class TurretBaseEM extends BlockAbstractTurretBase {
public static TurretBaseEM INSTANCE;
public TurretBaseEM(){
- setCreativeTab(TecTech.mainTab);
+ setCreativeTab(creativeTabTecTech);
setResistance(16);
setBlockName("turretBaseEM");
setStepSound(Block.soundTypeMetal);
diff --git a/src/main/java/openmodularturrets/blocks/turretheads/TurretHeadEM.java b/src/main/java/openmodularturrets/blocks/turretheads/TurretHeadEM.java
index e7746a8291..3710092eb5 100644
--- a/src/main/java/openmodularturrets/blocks/turretheads/TurretHeadEM.java
+++ b/src/main/java/openmodularturrets/blocks/turretheads/TurretHeadEM.java
@@ -1,6 +1,5 @@
package openmodularturrets.blocks.turretheads;
-import com.github.technus.tectech.TecTech;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.ITileEntityProvider;
@@ -12,6 +11,8 @@ import net.minecraft.world.World;
import openmodularturrets.tileentity.turret.TileTurretHeadEM;
import openmodularturrets.tileentity.turretbase.TurretBase;
+import static com.github.technus.tectech.loader.gui.CreativeTabTecTech.creativeTabTecTech;
+
/**
* Created by Bass on 27/07/2017.
*/
@@ -20,7 +21,7 @@ public class TurretHeadEM extends Block implements ITileEntityProvider {
public TurretHeadEM(){
super(Material.glass);
- setCreativeTab(TecTech.mainTab);
+ setCreativeTab(creativeTabTecTech);
setBlockUnbreakable();
setResistance(6000000.0F);
setStepSound(Block.soundTypeMetal);
diff --git a/src/main/java/openmodularturrets/entity/projectiles/projectileEM.java b/src/main/java/openmodularturrets/entity/projectiles/projectileEM.java
index 53e6186a25..da4e7ce731 100644
--- a/src/main/java/openmodularturrets/entity/projectiles/projectileEM.java
+++ b/src/main/java/openmodularturrets/entity/projectiles/projectileEM.java
@@ -1,10 +1,10 @@
package openmodularturrets.entity.projectiles;
import com.github.technus.tectech.TecTech;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
-import com.github.technus.tectech.elementalMatter.core.stacks.cElementalInstanceStack;
-import com.github.technus.tectech.elementalMatter.definitions.complex.hadron.dHadronDefinition;
-import com.github.technus.tectech.elementalMatter.definitions.primitive.eQuarkDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.cElementalInstanceStack;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.hadron.dHadronDefinition;
+import com.github.technus.tectech.mechanics.elementalMatter.definitions.primitive.eQuarkDefinition;
import gregtech.api.GregTech_API;
import gregtech.api.util.GT_Utility;
import net.minecraft.block.Block;
@@ -48,7 +48,7 @@ public class projectileEM extends TurretProjectile {
if (onlyQuarks) {
avalableEM.clear();
} else {
- cElementalInstanceStack consumeFromThis=avalableEM.get(TecTech.Rnd.nextInt(avalableEM.size()));
+ cElementalInstanceStack consumeFromThis=avalableEM.get(TecTech.RANDOM.nextInt(avalableEM.size()));
massFactor =consumeFromThis.definition.getMass()/ dHadronDefinition.hadron_n_.getMass();
if(consumeFromThis.definition.getType()>1 || consumeFromThis.definition.getType()<-1) {
@@ -78,8 +78,8 @@ public class projectileEM extends TurretProjectile {
if(movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) {
Block hitBlock = worldObj.getBlock(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ);
if(hitBlock != null){
- if (hitBlock.getMaterial().isSolid() && TecTech.ModConfig.ENABLE_TURRET_EXPLOSIONS && antiMatter) {
- worldObj.playSoundEffect(posX, posY, posZ, "openmodularturrets:laserHit", ConfigHandler.getTurretSoundVolume(), TecTech.Rnd.nextFloat() + 0.5F);
+ if (hitBlock.getMaterial().isSolid() && TecTech.configTecTech.ENABLE_TURRET_EXPLOSIONS && antiMatter) {
+ worldObj.playSoundEffect(posX, posY, posZ, "openmodularturrets:laserHit", ConfigHandler.getTurretSoundVolume(), TecTech.RANDOM.nextFloat() + 0.5F);
GT_Utility.sendSoundToPlayers(worldObj, GregTech_API.sSoundList.get(209), 1.0F, -1.0F,
movingobjectposition.blockX,
movingobjectposition.blockY,
@@ -87,7 +87,7 @@ public class projectileEM extends TurretProjectile {
worldObj.createExplosion(null,
movingobjectposition.blockX + 0.5D,
movingobjectposition.blockY + 0.5D,
- movingobjectposition.blockZ + 0.5D, (exotic?10:1) * TecTech.ModConfig.TURRET_EXPLOSION_FACTOR * massFactor * (isAmped? amp_level*.1f +1:1) * (ticksExisted/250f), true);
+ movingobjectposition.blockZ + 0.5D, (exotic?10:1) * TecTech.configTecTech.TURRET_EXPLOSION_FACTOR * massFactor * (isAmped? amp_level*.1f +1:1) * (ticksExisted/250f), true);
} else {
return;
}
@@ -95,9 +95,9 @@ public class projectileEM extends TurretProjectile {
}
if(movingobjectposition.entityHit != null && !worldObj.isRemote) {
- worldObj.playSoundEffect(posX, posY, posZ, "openmodularturrets:laserHit", ConfigHandler.getTurretSoundVolume(), TecTech.Rnd.nextFloat() + 0.5F);
+ worldObj.playSoundEffect(posX, posY, posZ, "openmodularturrets:laserHit", ConfigHandler.getTurretSoundVolume(), TecTech.RANDOM.nextFloat() + 0.5F);
if(movingobjectposition.entityHit != null && !worldObj.isRemote) {
- float damage = (exotic?10:1) * TecTech.ModConfig.TURRET_DAMAGE_FACTOR * massFactor * (isAmped? amp_level*.1f +1:1);
+ float damage = (exotic?10:1) * TecTech.configTecTech.TURRET_DAMAGE_FACTOR * massFactor * (isAmped? amp_level*.1f +1:1);
if(movingobjectposition.entityHit instanceof EntityPlayer) {
if(canDamagePlayer((EntityPlayer)movingobjectposition.entityHit)) {
@@ -115,7 +115,7 @@ public class projectileEM extends TurretProjectile {
}
}
- if (TecTech.ModConfig.ENABLE_TURRET_EXPLOSIONS && antiMatter) {
+ if (TecTech.configTecTech.ENABLE_TURRET_EXPLOSIONS && antiMatter) {
GT_Utility.sendSoundToPlayers(worldObj, GregTech_API.sSoundList.get(209), 1.0F, -1.0F,
(int)movingobjectposition.entityHit.posX,
(int)movingobjectposition.entityHit.posY,
@@ -123,7 +123,7 @@ public class projectileEM extends TurretProjectile {
worldObj.createExplosion(null,
movingobjectposition.entityHit.posX,
movingobjectposition.entityHit.posY,
- movingobjectposition.entityHit.posZ, (exotic?10:1) * TecTech.ModConfig.TURRET_EXPLOSION_FACTOR * massFactor * (isAmped? amp_level*.1f +1:1) * (ticksExisted/250f), true);
+ movingobjectposition.entityHit.posZ, (exotic?10:1) * TecTech.configTecTech.TURRET_EXPLOSION_FACTOR * massFactor * (isAmped? amp_level*.1f +1:1) * (ticksExisted/250f), true);
}
}
}
diff --git a/src/main/java/openmodularturrets/entity/projectiles/projectileRenderEM.java b/src/main/java/openmodularturrets/entity/projectiles/projectileRenderEM.java
index 9faeb02da6..45782e9102 100644
--- a/src/main/java/openmodularturrets/entity/projectiles/projectileRenderEM.java
+++ b/src/main/java/openmodularturrets/entity/projectiles/projectileRenderEM.java
@@ -1,6 +1,6 @@
package openmodularturrets.entity.projectiles;
-import com.github.technus.tectech.auxiliary.Reference;
+import com.github.technus.tectech.Reference;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.OpenGlHelper;
diff --git a/src/main/java/openmodularturrets/tileentity/turret/TileTurretHeadEM.java b/src/main/java/openmodularturrets/tileentity/turret/TileTurretHeadEM.java
index 286f12d853..7c38abd424 100644
--- a/src/main/java/openmodularturrets/tileentity/turret/TileTurretHeadEM.java
+++ b/src/main/java/openmodularturrets/tileentity/turret/TileTurretHeadEM.java
@@ -1,6 +1,6 @@
package openmodularturrets.tileentity.turret;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
import com.github.technus.tectech.thing.item.DebugElementalInstanceContainer_EM;
import net.minecraft.entity.Entity;
import net.minecraft.item.Item;
diff --git a/src/main/java/openmodularturrets/tileentity/turretbase/TileTurretBaseEM.java b/src/main/java/openmodularturrets/tileentity/turretbase/TileTurretBaseEM.java
index 7bb87c8826..7feb49ef82 100644
--- a/src/main/java/openmodularturrets/tileentity/turretbase/TileTurretBaseEM.java
+++ b/src/main/java/openmodularturrets/tileentity/turretbase/TileTurretBaseEM.java
@@ -1,6 +1,6 @@
package openmodularturrets.tileentity.turretbase;
-import com.github.technus.tectech.elementalMatter.core.cElementalInstanceStackMap;
+import com.github.technus.tectech.mechanics.elementalMatter.core.cElementalInstanceStackMap;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_InputElemental;
import cpw.mods.fml.common.Optional;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;