|
@@ -1,427 +1,427 @@
|
1
|
|
-package gregapi;
|
2
|
|
-
|
3
|
|
-import static gregapi.data.CS.*;
|
4
|
|
-
|
5
|
|
-import java.util.ArrayList;
|
6
|
|
-import java.util.List;
|
7
|
|
-
|
8
|
|
-import cpw.mods.fml.common.LoadController;
|
9
|
|
-import cpw.mods.fml.common.Loader;
|
10
|
|
-import cpw.mods.fml.common.Mod;
|
11
|
|
-import cpw.mods.fml.common.ModContainer;
|
12
|
|
-import cpw.mods.fml.common.event.FMLInitializationEvent;
|
13
|
|
-import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
14
|
|
-import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
15
|
|
-import cpw.mods.fml.common.event.FMLServerStartedEvent;
|
16
|
|
-import cpw.mods.fml.common.event.FMLServerStartingEvent;
|
17
|
|
-import cpw.mods.fml.common.event.FMLServerStoppedEvent;
|
18
|
|
-import cpw.mods.fml.common.event.FMLServerStoppingEvent;
|
19
|
|
-import gregapi.api.Abstract_Mod;
|
20
|
|
-import gregapi.api.Abstract_Proxy;
|
21
|
|
-import gregapi.data.ANY;
|
22
|
|
-import gregapi.data.CS.BlocksGT;
|
23
|
|
-import gregapi.data.CS.ModIDs;
|
24
|
|
-import gregapi.data.IL;
|
25
|
|
-import gregapi.data.MD;
|
26
|
|
-import gregapi.data.MT;
|
27
|
|
-import gregapi.data.OD;
|
28
|
|
-import gregapi.data.OP;
|
29
|
|
-import gregapi.data.TD;
|
30
|
|
-import gregapi.load.LoaderBookList;
|
31
|
|
-import gregapi.load.LoaderItemData;
|
32
|
|
-import gregapi.load.LoaderItemList;
|
33
|
|
-import gregapi.load.LoaderUnificationTargets;
|
34
|
|
-import gregapi.load.LoaderWoodDictionary;
|
35
|
|
-import gregapi.oredict.OreDictItemData;
|
36
|
|
-import gregapi.oredict.OreDictManager;
|
37
|
|
-import gregapi.oredict.OreDictMaterial;
|
38
|
|
-import gregapi.util.OM;
|
39
|
|
-import gregapi.util.ST;
|
40
|
|
-import gregapi.util.UT;
|
41
|
|
-import net.minecraft.enchantment.Enchantment;
|
42
|
|
-import net.minecraft.item.Item;
|
43
|
|
-
|
44
|
|
-/**
|
45
|
|
- * @author Gregorius Techneticies
|
46
|
|
- *
|
47
|
|
- * This loads after the compatible Mods. The regular API loads before all compatible Mods.
|
48
|
|
- */
|
49
|
|
-@Mod(modid=ModIDs.GAPI_POST, name="Greg-API-Post", version="GT6-MC1710", dependencies="required-after:"+ModIDs.GAPI+"; after:"+ModIDs.MD8+"; after:"+ModIDs.IC2+"; after:"+ModIDs.IC2C+"; after:"+ModIDs.NC+"; after:"+ModIDs.IHL+"; after:"+ModIDs.FMB+"; after:"+ModIDs.BAUBLES+"; after:"+ModIDs.GaSu+"; after:"+ModIDs.GaNe+"; after:"+ModIDs.GaEn+"; after:"+ModIDs.WdSt+"; after:"+ModIDs.CrGu+"; after:"+ModIDs.COFH_API+"; after:"+ModIDs.COFH_API_ENERGY+"; after:"+ModIDs.CC+"; after:"+ModIDs.OC+"; after:"+ModIDs.DE+"; after:"+ModIDs.FR+"; after:"+ModIDs.FRMB+"; after:"+ModIDs.BINNIE+"; after:"+ModIDs.BINNIE_BEE+"; after:"+ModIDs.BINNIE_TREE+"; after:"+ModIDs.BINNIE_GENETICS+"; after:"+ModIDs.BINNIE_BOTANY+"; after:"+ModIDs.IE+"; after:"+ModIDs.UB+"; after:"+ModIDs.COG+"; after:"+ModIDs.PFAA+"; after:"+ModIDs.ARS+"; after:"+ModIDs.TC+"; after:"+ModIDs.TCFM+"; after:"+ModIDs.BOTA+"; after:"+ModIDs.WTCH+"; after:"+ModIDs.HOWL+"; after:"+ModIDs.MoCr+"; after:"+ModIDs.GoG+"; after:"+ModIDs.LycM+"; after:"+ModIDs.LycM_Arctic+"; after:"+ModIDs.LycM_Demon+"; after:"+ModIDs.LycM_Desert+"; after:"+ModIDs.LycM_Forest+"; after:"+ModIDs.LycM_Fresh+"; after:"+ModIDs.LycM_Inferno+"; after:"+ModIDs.LycM_Jungle+"; after:"+ModIDs.LycM_Mountain+"; after:"+ModIDs.LycM_Plains+"; after:"+ModIDs.LycM_Salt+"; after:"+ModIDs.LycM_Shadow+"; after:"+ModIDs.LycM_Swamp+"; after:"+ModIDs.RC+"; after:"+ModIDs.BP+"; after:"+ModIDs.PR+"; after:"+ModIDs.PR_EXPANSION+"; after:"+ModIDs.PR_INTEGRATION+"; after:"+ModIDs.PR_TRANSMISSION+"; after:"+ModIDs.PR_TRANSPORT+"; after:"+ModIDs.PE+"; after:"+ModIDs.AE+"; after:"+ModIDs.MO+"; after:"+ModIDs.TE_FOUNDATION+"; after:"+ModIDs.TE_DYNAMICS+"; after:"+ModIDs.TE+"; after:"+ModIDs.ZTONES+"; after:"+ModIDs.CHSL+"; after:"+ModIDs.EtFu+"; after:"+ModIDs.BbLC+"; after:"+ModIDs.CARP+"; after:"+ModIDs.BETTER_RECORDS+"; after:"+ModIDs.TF+"; after:"+ModIDs.ERE+"; after:"+ModIDs.MFR+"; after:"+ModIDs.PnC+"; after:"+ModIDs.ExU+"; after:"+ModIDs.ExS+"; after:"+ModIDs.EIO+"; after:"+ModIDs.RT+"; after:"+ModIDs.AA+"; after:"+ModIDs.HaC+"; after:"+ModIDs.CookBook+"; after:"+ModIDs.APC+"; after:"+ModIDs.ENVM+"; after:"+ModIDs.MaCr+"; after:"+ModIDs.BC_TRANSPORT+"; after:"+ModIDs.BC_SILICON+"; after:"+ModIDs.BC_FACTORY+"; after:"+ModIDs.BC_ENERGY+"; after:"+ModIDs.BC_ROBOTICS+"; after:"+ModIDs.BC+"; after:"+ModIDs.BC_BUILDERS+"; after:"+ModIDs.MgC+"; after:"+ModIDs.BR+"; after:"+ModIDs.HBM+"; after:"+ModIDs.DRGN+"; after:"+ModIDs.ElC+"; after:"+ModIDs.CrC+"; after:"+ModIDs.ReC+"; after:"+ModIDs.RoC+"; after:"+ModIDs.Mek+"; after:"+ModIDs.Mek_Tools+"; after:"+ModIDs.Mek_Generators+"; after:"+ModIDs.GC+"; after:"+ModIDs.GC_PLANETS+"; after:"+ModIDs.GC_GALAXYSPACE+"; after:"+ModIDs.VULPES+"; after:"+ModIDs.GC_ADV_ROCKETRY+"; after:"+ModIDs.BTL+"; after:"+ModIDs.AETHER+"; after:"+ModIDs.ATUM+"; after:"+ModIDs.EBXL+"; after:"+ModIDs.BoP+"; after:"+ModIDs.HiL+"; after:"+ModIDs.ATG+"; after:"+ModIDs.RTG+"; after:"+ModIDs.RWG+"; after:"+ModIDs.MYST+"; after:"+ModIDs.WARPBOOK+"; after:"+ModIDs.LOSTBOOKS+"; after:"+ModIDs.EUREKA+"; after:"+ModIDs.ENCHIRIDION+"; after:"+ModIDs.ENCHIRIDION2+"; after:"+ModIDs.SmAc+"; after:"+ModIDs.HQM+"; after:"+ModIDs.JABBA+"; after:"+ModIDs.MaCu+"; after:"+ModIDs.PdC+"; after:"+ModIDs.Bamboo+"; after:"+ModIDs.GrC+"; after:"+ModIDs.GrC_Apples+"; after:"+ModIDs.GrC_Bamboo+"; after:"+ModIDs.GrC_Bees+"; after:"+ModIDs.GrC_Cellar+"; after:"+ModIDs.GrC_Fish+"; after:"+ModIDs.GrC_Grapes+"; after:"+ModIDs.GrC_Hops+"; after:"+ModIDs.GrC_Milk+"; after:"+ModIDs.GrC_Rice+"; after:"+ModIDs.BWM+"; after:"+ModIDs.OMT+"; after:"+ModIDs.TG+"; after:"+ModIDs.FM+"; after:"+ModIDs.FZ+"; after:"+ModIDs.MNTL+"; after:"+ModIDs.OB+"; after:"+ModIDs.TiC+"; after:"+ModIDs.WR_CBE_C+"; after:"+ModIDs.WR_CBE_A+"; after:"+ModIDs.WR_CBE_L+"; after:inventorytweaks; after:ironbackpacks; after:journeymap; after:LogisticsPipes; after:LunatriusCore; after:NEIAddons; after:NEIAddons|Developer; after:NEIAddons|AppEng; after:NEIAddons|Botany; after:NEIAddons|Forestry; after:NEIAddons|CraftingTables; after:NEIAddons|ExNihilo; after:neiintegration; after:openglasses; after:simplyjetpacks; after:Stackie; after:StevesCarts; after:TiCTooltips; after:worldedit; after:McMultipart")
|
50
|
|
-public class GT_API_Post extends Abstract_Mod {
|
51
|
|
- public GT_API_Post() {GAPI_POST = this;}
|
52
|
|
-
|
53
|
|
- @Override public String getModID() {return MD.GAPI_POST.mID;}
|
54
|
|
- @Override public String getModName() {return MD.GAPI_POST.mName;}
|
55
|
|
- @Override public String getModNameForLog() {return "GT_API_POST";}
|
56
|
|
- @Override public Abstract_Proxy getProxy() {return null;}
|
57
|
|
-
|
58
|
|
- @Mod.EventHandler public final void onPreLoad (FMLPreInitializationEvent aEvent) {onModPreInit(aEvent);}
|
59
|
|
- @Mod.EventHandler public final void onLoad (FMLInitializationEvent aEvent) {onModInit(aEvent);}
|
60
|
|
- @Mod.EventHandler public final void onPostLoad (FMLPostInitializationEvent aEvent) {onModPostInit(aEvent);}
|
61
|
|
- @Mod.EventHandler public final void onServerStarting (FMLServerStartingEvent aEvent) {onModServerStarting(aEvent);}
|
62
|
|
- @Mod.EventHandler public final void onServerStarted (FMLServerStartedEvent aEvent) {onModServerStarted(aEvent);}
|
63
|
|
- @Mod.EventHandler public final void onServerStopping (FMLServerStoppingEvent aEvent) {onModServerStopping(aEvent);}
|
64
|
|
- @Mod.EventHandler public final void onServerStopped (FMLServerStoppedEvent aEvent) {onModServerStopped(aEvent);}
|
65
|
|
-
|
66
|
|
- @Override
|
67
|
|
- public void onModPreInit2(FMLPreInitializationEvent aEvent) {
|
68
|
|
- try {
|
69
|
|
- OUT.println(getModNameForLog() + ": Sorting Greg-API-Post to the end of the Mod List for further processing.");
|
70
|
|
- LoadController tLoadController = ((LoadController)UT.Reflection.getFieldContent(Loader.instance(), "modController", T, T));
|
71
|
|
- List<ModContainer> tModList = tLoadController.getActiveModList(), tNewModsList = new ArrayList(tModList.size());
|
72
|
|
- ModContainer tGregTech = null;
|
73
|
|
- for (short i = 0; i < tModList.size(); i++) {
|
74
|
|
- ModContainer tMod = tModList.get(i);
|
75
|
|
- if (tMod.getModId().equalsIgnoreCase(MD.GAPI_POST.mID)) tGregTech = tMod; else tNewModsList.add(tMod);
|
76
|
|
- }
|
77
|
|
- if (tGregTech != null) tNewModsList.add(tGregTech);
|
78
|
|
- UT.Reflection.getField(tLoadController, "activeModList", T, T).set(tLoadController, tNewModsList);
|
79
|
|
- } catch(Throwable e) {
|
80
|
|
- if (D1) e.printStackTrace(ERR);
|
81
|
|
- }
|
82
|
|
-
|
83
|
|
- // Fixing Items of certain Mods.
|
84
|
|
- for (Item tItem : new Item[] {
|
85
|
|
- ST.item(MD.GrC_Grapes, "grc.grapes")
|
86
|
|
- , ST.item(MD.FR, "letters")
|
87
|
|
- , ST.item(MD.FZ, "acid")
|
88
|
|
- }) if (tItem != null) tItem.setMaxDamage(0).setHasSubtypes(T);
|
89
|
|
-
|
90
|
|
- new LoaderItemList().run();
|
91
|
|
- new LoaderItemData().run();
|
92
|
|
- new LoaderUnificationTargets().run();
|
93
|
|
-
|
94
|
|
- if (MD.MET.mLoaded) {
|
95
|
|
- MT.OREMATS.Bauxite .addOreByProducts(MT.Alduorite );
|
96
|
|
- MT.OREMATS.Chalcopyrite .addOreByProducts(MT.Infuscolium );
|
97
|
|
- MT.OREMATS.Scheelite .addOreByProducts(MT.Rubracium );
|
98
|
|
- MT.OREMATS.Pentlandite .addOreByProducts(MT.Meutoite );
|
99
|
|
- MT.OREMATS.Magnesite .addOreByProducts(MT.Lemurite );
|
100
|
|
- MT.OREMATS.Stibnite .addOreByProducts(MT.Ceruclase );
|
101
|
|
- MT.TiO2 .addOreByProducts(MT.Atlarus );
|
102
|
|
- MT.OREMATS.Garnierite .addOreByProducts(MT.Oureclase );
|
103
|
|
- MT.OREMATS.Cooperite .addOreByProducts(MT.Kalendrite );
|
104
|
|
- MT.OREMATS.Ilmenite .addOreByProducts(MT.Orichalcum );
|
105
|
|
- MT.OREMATS.Sphalerite .addOreByProducts(MT.Carmot );
|
106
|
|
- MT.OREMATS.Cinnabar .addOreByProducts(MT.Sanguinite );
|
107
|
|
- MT.OREMATS.Malachite .addOreByProducts(MT.Vyroxeres );
|
108
|
|
- MT.MnO2 .addOreByProducts(MT.Eximite );
|
109
|
|
- MT.OREMATS.Cobaltite .addOreByProducts(MT.Prometheum );
|
110
|
|
- MT.OREMATS.Cassiterite .addOreByProducts(MT.Ignatius );
|
111
|
|
- MT.OREMATS.Wolframite .addOreByProducts(MT.Vulcanite );
|
112
|
|
- MT.Fe2O3 .addOreByProducts(MT.DeepIron );
|
113
|
|
- MT.OREMATS.Magnetite .addOreByProducts(MT.ShadowIron );
|
114
|
|
- }
|
115
|
|
- if (MD.Mek.mLoaded) {
|
116
|
|
- MT.OREMATS.Galena.addOreByProducts(MT.FakeOsmium);
|
117
|
|
- MT.OREMATS.Magnetite.addOreByProducts(MT.FakeOsmium);
|
118
|
|
- MT.OREMATS.Ferrovanadium.addOreByProducts(MT.FakeOsmium);
|
119
|
|
- MT.OREMATS.BasalticMineralSand.addOreByProducts(MT.FakeOsmium);
|
120
|
|
- MT.OREMATS.GraniticMineralSand.addOreByProducts(MT.FakeOsmium);
|
121
|
|
- }
|
122
|
|
- if (MD.TiC.mLoaded) {
|
123
|
|
- MT.Co.addOreByProducts(MT.Ardite);
|
124
|
|
- }
|
125
|
|
- if (MD.BR.mLoaded) {
|
126
|
|
- MT.Th.addOreByProducts(MT.Cyanite);
|
127
|
|
- MT.Monazite.addOreByProducts(MT.Cyanite);
|
128
|
|
- MT.Forcicium.addOreByProducts(MT.Cyanite);
|
129
|
|
- MT.Forcillium.addOreByProducts(MT.Cyanite);
|
130
|
|
- MT.OREMATS.Pitchblende.addOreByProducts(MT.Yellorium);
|
131
|
|
- MT.OREMATS.Uraninite.addOreByProducts(MT.Yellorium);
|
132
|
|
- MT.U_238.addOreByProducts(MT.Yellorium);
|
133
|
|
- MT.Pu.addOreByProducts(MT.Blutonium);
|
134
|
|
- MT.Am.addOreByProducts(MT.Blutonium);
|
135
|
|
- }
|
136
|
|
- if (MD.AE.mLoaded) {
|
137
|
|
- OP.gem .disableItemGeneration(MT.CertusQuartz, MT.Fluix);
|
138
|
|
- OP.dust .disableItemGeneration(MT.CertusQuartz, MT.Fluix);
|
139
|
|
- }
|
140
|
|
- if (MD.AA.mLoaded) {
|
141
|
|
- MT.OREMATS.Barite.addOreByProducts(MT.BlackQuartz);
|
142
|
|
- }
|
143
|
|
-
|
144
|
|
- }
|
145
|
|
-
|
146
|
|
- @Override
|
147
|
|
- public void onModInit2(FMLInitializationEvent aEvent) {
|
148
|
|
- new LoaderWoodDictionary().run();
|
149
|
|
-
|
150
|
|
- // Atum violates the "Items have to be created in preInit" Rule...
|
151
|
|
- if (MD.ATUM.mLoaded) {
|
152
|
|
- IL.ATUM_Scarab .set(ST.make(MD.ATUM, "item.scarab" , 1, 0), new OreDictItemData(MT.Au, 4*U, MT.Diamond, U));
|
153
|
|
- IL.ATUM_Limestone .set(ST.make(MD.ATUM, "tile.stone" , 1, 0), OP.stone.dat(MT.Limestone));
|
154
|
|
- IL.ATUM_Limecobble .set(ST.make(MD.ATUM, "tile.cobble" , 1, 0), OP.stone.dat(MT.Limestone));
|
155
|
|
-
|
156
|
|
- OM.reg("cropDate" , ST.make(MD.ATUM, "item.date", 1, 0));
|
157
|
|
- OM.reg("cropFlax" , ST.make(MD.ATUM, "item.flax", 1, 0));
|
158
|
|
- OM.reg("seedFlax" , ST.make(MD.ATUM, "item.flaxSeeds", 1, 0));
|
159
|
|
- OM.reg("itemPelt" , ST.make(MD.ATUM, "item.wolfPelt", 1, 0));
|
160
|
|
- OM.reg(OP.dust, MT.Ectoplasm , ST.make(MD.ATUM, "item.ectoplasm", 1, 0));
|
161
|
|
- OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.ironOre" , 1, 0), OP.oreLimestone.dat(MT.Fe ));
|
162
|
|
- OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.goldOre" , 1, 0), OP.oreLimestone.dat(MT.Au ));
|
163
|
|
- OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.redstoneOre" , 1, 0), OP.oreLimestone.dat(MT.Redstone ));
|
164
|
|
- OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.lapisOre" , 1, 0), OP.oreLimestone.dat(MT.Lapis ));
|
165
|
|
- OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.coalOre" , 1, 0), OP.oreLimestone.dat(MT.Coal ));
|
166
|
|
- OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.diamondOre" , 1, 0), OP.oreLimestone.dat(MT.Diamond ));
|
167
|
|
-
|
168
|
|
- OM.data(MD.ATUM, "item.stoneChunk", 1, 0, MT.Limestone, U);
|
169
|
|
- OM.data(MD.ATUM, "tile.sand", 1, W, MT.Sand, U);
|
170
|
|
- OM.data(MD.ATUM, "tile.framedGlass", 1, W, MT.Glass, U);
|
171
|
|
- OM.data(MD.ATUM, "tile.crystalGlass", 1, W, MT.Glass, U);
|
172
|
|
- OM.data(MD.ATUM, "tile.framedStainedGlass", 1, W, MT.Glass, U);
|
173
|
|
- OM.data(MD.ATUM, "tile.crystalStainedGlass", 1, W, MT.Glass, U);
|
174
|
|
- OM.data(MD.ATUM, "tile.thinFramedGlass", 1, W, MT.Glass, 3*U8);
|
175
|
|
- OM.data(MD.ATUM, "tile.thinCrystalGlass", 1, W, MT.Glass, 3*U8);
|
176
|
|
- OM.data(MD.ATUM, "tile.thinFramedStainedGlass", 1, W, MT.Glass, 3*U8);
|
177
|
|
- OM.data(MD.ATUM, "tile.thinCrystalStainedGlass", 1, W, MT.Glass, 3*U8);
|
178
|
|
-
|
179
|
|
- OM.data(MD.ATUM, "item.loot", 1, 2, MT.Ag , 2*U);
|
180
|
|
- OM.data(MD.ATUM, "item.loot", 1, 3, MT.Ag , 2*U);
|
181
|
|
- OM.data(MD.ATUM, "item.loot", 1, 4, MT.Au , 2*U);
|
182
|
|
- OM.data(MD.ATUM, "item.loot", 1, 5, MT.Au , 2*U);
|
183
|
|
- OM.data(MD.ATUM, "item.loot", 1, 6, MT.Au , 2*U, MT.BlueSapphire , 2*U);
|
184
|
|
- OM.data(MD.ATUM, "item.loot", 1, 7, MT.Au , 2*U, MT.BlueSapphire , 2*U);
|
185
|
|
- OM.data(MD.ATUM, "item.loot", 1, 8, MT.Au , 2*U, MT.Ruby , 2*U);
|
186
|
|
- OM.data(MD.ATUM, "item.loot", 1, 9, MT.Au , 2*U, MT.Ruby , 2*U);
|
187
|
|
- OM.data(MD.ATUM, "item.loot", 1, 10, MT.Au , 2*U, MT.Emerald , 2*U);
|
188
|
|
- OM.data(MD.ATUM, "item.loot", 1, 11, MT.Au , 2*U, MT.Emerald , 2*U);
|
189
|
|
- OM.data(MD.ATUM, "item.loot", 1, 12, MT.Au , 2*U, MT.Diamond , 2*U);
|
190
|
|
- OM.data(MD.ATUM, "item.loot", 1, 13, MT.Au , 2*U, MT.Diamond , 2*U);
|
191
|
|
- OM.data(MD.ATUM, "item.loot", 1, 34, MT.Ag , U);
|
192
|
|
- OM.data(MD.ATUM, "item.loot", 1, 35, MT.Ag , U);
|
193
|
|
- OM.data(MD.ATUM, "item.loot", 1, 36, MT.Au , U);
|
194
|
|
- OM.data(MD.ATUM, "item.loot", 1, 37, MT.Au , U);
|
195
|
|
- OM.data(MD.ATUM, "item.loot", 1, 38, MT.Au , U, MT.BlueSapphire , U);
|
196
|
|
- OM.data(MD.ATUM, "item.loot", 1, 39, MT.Au , U, MT.BlueSapphire , U);
|
197
|
|
- OM.data(MD.ATUM, "item.loot", 1, 40, MT.Au , U, MT.Ruby , U);
|
198
|
|
- OM.data(MD.ATUM, "item.loot", 1, 41, MT.Au , U, MT.Ruby , U);
|
199
|
|
- OM.data(MD.ATUM, "item.loot", 1, 42, MT.Au , U, MT.Emerald , U);
|
200
|
|
- OM.data(MD.ATUM, "item.loot", 1, 43, MT.Au , U, MT.Emerald , U);
|
201
|
|
- OM.data(MD.ATUM, "item.loot", 1, 44, MT.Au , U, MT.Diamond , U);
|
202
|
|
- OM.data(MD.ATUM, "item.loot", 1, 45, MT.Au , U, MT.Diamond , U);
|
203
|
|
- OM.data(MD.ATUM, "item.loot", 1, 66, MT.Ag , U);
|
204
|
|
- OM.data(MD.ATUM, "item.loot", 1, 67, MT.Ag , U);
|
205
|
|
- OM.data(MD.ATUM, "item.loot", 1, 68, MT.Au , U);
|
206
|
|
- OM.data(MD.ATUM, "item.loot", 1, 69, MT.Au , U);
|
207
|
|
- OM.data(MD.ATUM, "item.loot", 1, 70, MT.Au , U, MT.BlueSapphire , U);
|
208
|
|
- OM.data(MD.ATUM, "item.loot", 1, 71, MT.Au , U, MT.BlueSapphire , U);
|
209
|
|
- OM.data(MD.ATUM, "item.loot", 1, 72, MT.Au , U, MT.Ruby , U);
|
210
|
|
- OM.data(MD.ATUM, "item.loot", 1, 73, MT.Au , U, MT.Ruby , U);
|
211
|
|
- OM.data(MD.ATUM, "item.loot", 1, 74, MT.Au , U, MT.Emerald , U);
|
212
|
|
- OM.data(MD.ATUM, "item.loot", 1, 75, MT.Au , U, MT.Emerald , U);
|
213
|
|
- OM.data(MD.ATUM, "item.loot", 1, 76, MT.Au , U, MT.Diamond , U);
|
214
|
|
- OM.data(MD.ATUM, "item.loot", 1, 77, MT.Au , U, MT.Diamond , U);
|
215
|
|
- OM.data(MD.ATUM, "item.loot", 1, 98, MT.Ag , U);
|
216
|
|
- OM.data(MD.ATUM, "item.loot", 1, 99, MT.Ag , U);
|
217
|
|
- OM.data(MD.ATUM, "item.loot", 1,100, MT.Au , U);
|
218
|
|
- OM.data(MD.ATUM, "item.loot", 1,101, MT.Au , U);
|
219
|
|
- OM.data(MD.ATUM, "item.loot", 1,102, MT.Au , U, MT.BlueSapphire , U);
|
220
|
|
- OM.data(MD.ATUM, "item.loot", 1,103, MT.Au , U, MT.BlueSapphire , U);
|
221
|
|
- OM.data(MD.ATUM, "item.loot", 1,104, MT.Au , U, MT.Ruby , U);
|
222
|
|
- OM.data(MD.ATUM, "item.loot", 1,105, MT.Au , U, MT.Ruby , U);
|
223
|
|
- OM.data(MD.ATUM, "item.loot", 1,106, MT.Au , U, MT.Emerald , U);
|
224
|
|
- OM.data(MD.ATUM, "item.loot", 1,107, MT.Au , U, MT.Emerald , U);
|
225
|
|
- OM.data(MD.ATUM, "item.loot", 1,108, MT.Au , U, MT.Diamond , U);
|
226
|
|
- OM.data(MD.ATUM, "item.loot", 1,109, MT.Au , U, MT.Diamond , U);
|
227
|
|
- OM.data(MD.ATUM, "item.loot", 1,130, MT.Ag , 2*U);
|
228
|
|
- OM.data(MD.ATUM, "item.loot", 1,131, MT.Ag , 2*U);
|
229
|
|
- OM.data(MD.ATUM, "item.loot", 1,132, MT.Au , 2*U);
|
230
|
|
- OM.data(MD.ATUM, "item.loot", 1,133, MT.Au , 2*U);
|
231
|
|
- OM.data(MD.ATUM, "item.loot", 1,134, MT.Au , 2*U, MT.BlueSapphire , 2*U);
|
232
|
|
- OM.data(MD.ATUM, "item.loot", 1,135, MT.Au , 2*U, MT.BlueSapphire , 2*U);
|
233
|
|
- OM.data(MD.ATUM, "item.loot", 1,136, MT.Au , 2*U, MT.Ruby , 2*U);
|
234
|
|
- OM.data(MD.ATUM, "item.loot", 1,137, MT.Au , 2*U, MT.Ruby , 2*U);
|
235
|
|
- OM.data(MD.ATUM, "item.loot", 1,138, MT.Au , 2*U, MT.Emerald , 2*U);
|
236
|
|
- OM.data(MD.ATUM, "item.loot", 1,139, MT.Au , 2*U, MT.Emerald , 2*U);
|
237
|
|
- OM.data(MD.ATUM, "item.loot", 1,140, MT.Au , 2*U, MT.Diamond , 2*U);
|
238
|
|
- OM.data(MD.ATUM, "item.loot", 1,141, MT.Au , 2*U, MT.Diamond , 2*U);
|
239
|
|
- }
|
240
|
|
-
|
241
|
|
- // And Project Red violates that Rule aswell...
|
242
|
|
- if (MD.PR.mLoaded) {
|
243
|
|
- OreDictManager.INSTANCE.setTarget(OP.ingot , MT.RedAlloy , ST.make(MD.PR, "projectred.core.part", 1, 10));
|
244
|
|
- OreDictManager.INSTANCE.setTarget(OP.ingot , MT.ElectrotineAlloy , ST.make(MD.PR, "projectred.core.part", 1, 55));
|
245
|
|
- OreDictManager.INSTANCE.setTarget(OP.dust , MT.Electrotine , ST.make(MD.PR, "projectred.core.part", 1, 56));
|
246
|
|
- }
|
247
|
|
-
|
248
|
|
- // Okay I should not have wondered about Blue Power doing the same garbage considering Project Red...
|
249
|
|
- if (MD.BP.mLoaded) {
|
250
|
|
- OreDictManager.INSTANCE.setTarget(OP.ingot , MT.RedAlloy , ST.make(MD.BP, "red_alloy_ingot", 1, 0));
|
251
|
|
- OreDictManager.INSTANCE.setTarget(OP.ingot , MT.BlueAlloy , ST.make(MD.BP, "blue_alloy_ingot", 1, 0));
|
252
|
|
- OreDictManager.INSTANCE.setTarget(OP.ingot , MT.PurpleAlloy , ST.make(MD.BP, "purple_alloy_ingot", 1, 0));
|
253
|
|
- OreDictManager.INSTANCE.setTarget(OP.dust , MT.Teslatite , ST.make(MD.BP, "teslatite_dust", 1, 0));
|
254
|
|
- OreDictManager.INSTANCE.setTarget(OP.dust , MT.UNUSED.InfusedTeslatite , ST.make(MD.BP, "infused_teslatite_dust", 1, 0));
|
255
|
|
- OM.reg("seedFlax" , ST.make(MD.BP, "flax_seeds", 1, 0));
|
256
|
|
- OM.reg(DYE_OREDICTS_MIXABLE[DYE_INDEX_Purple] , ST.make(MD.BP, "indigo_dye", 1, 0));
|
257
|
|
- OM.reg("cropIndigo" , ST.make(MD.BP, "indigo_flower", 1, 0));
|
258
|
|
- OM.reg(OP.dustTiny.dat(MT.Zn) , ST.make(MD.BP, "zinc_tiny_dust", 1, 0));
|
259
|
|
- OM.reg(OP.crushed.dat(MT.Zn) , ST.make(MD.BP, "zinc_ore_crushed", 1, 0));
|
260
|
|
- OM.reg(OP.crushedPurified.dat(MT.Zn) , ST.make(MD.BP, "zinc_ore_purified", 1, 0));
|
261
|
|
- OM.reg(OP.boule.dat(MT.Si) , ST.make(MD.BP, "silicon_boule", 1, 0));
|
262
|
|
- }
|
263
|
|
-
|
264
|
|
- // Yay for Chickenbones doing it wrong, I guess...
|
265
|
|
- if (MD.WR_CBE_C.mLoaded) {
|
266
|
|
- OreDictManager.INSTANCE.setTarget(OP.stick , MT.Obsidian , ST.make(MD.WR_CBE_C, "obsidianStick", 1, 0));
|
267
|
|
- }
|
268
|
|
-
|
269
|
|
- // Oh look, Matter Overdrive does this shit too...
|
270
|
|
- if (MD.MO.mLoaded) {
|
271
|
|
- OreDictManager.INSTANCE.setTarget(OP.gem , MT.Dilithium , ST.make(MD.MO, "dilithium_crystal", 1, 0));
|
272
|
|
- OreDictManager.INSTANCE.setTarget(OP.dust , MT.TritaniumAlloy , ST.make(MD.MO, "tritanium_dust", 1, 0));
|
273
|
|
- OreDictManager.INSTANCE.setTarget(OP.nugget , MT.TritaniumAlloy , ST.make(MD.MO, "tritanium_nugget", 1, 0));
|
274
|
|
- OreDictManager.INSTANCE.setTarget(OP.ingot , MT.TritaniumAlloy , ST.make(MD.MO, "tritanium_ingot", 1, 0));
|
275
|
|
- OreDictManager.INSTANCE.setTarget(OP.plate , MT.TritaniumAlloy , ST.make(MD.MO, "tritanium_plate", 1, 0));
|
276
|
|
- }
|
277
|
|
-
|
278
|
|
- // ThermalExpansion gets on this ShitList too I guess...
|
279
|
|
- if (MD.TE.mLoaded) {
|
280
|
|
- OM.data(MD.TE, "Tank" , 1, 1, ANY.Cu , U * 1, MT.Glass , U * 4);
|
281
|
|
- OM.data(MD.TE, "Tank" , 1, 2, MT.Invar , U * 4, ANY.Cu , U * 1, MT.Glass , U * 4);
|
282
|
|
- OM.data(MD.TE, "Tank" , 1, 3, MT.Invar , U * 4, ANY.Cu , U * 1, MT.Glass , U * 4);
|
283
|
|
- OM.data(MD.TE, "Tank" , 1, 4, MT.Enderium , U * 4, MT.Invar , U * 4, ANY.Cu , U * 1, MT.Glass , U * 4);
|
284
|
|
- }
|
285
|
|
-
|
286
|
|
- // Wow, Ars Magica too is on this List, at least for its Blocks...
|
287
|
|
- if (MD.ARS.mLoaded) {
|
288
|
|
- IL.ARS_Cerublossom .set(ST.make(MD.ARS, "blueOrchid", 1, 0), null, "flowerCerublossom");
|
289
|
|
- IL.ARS_DesertNova .set(ST.make(MD.ARS, "desertNova", 1, 0), null, "flowerDesertNova");
|
290
|
|
- }
|
291
|
|
-
|
292
|
|
- // Cooking for Blockheads is here too!...
|
293
|
|
- if (MD.CookBook.mLoaded) {
|
294
|
|
- OM.data(MD.CookBook, "recipebook", 1, W, MT.Paper, U*3);
|
295
|
|
- }
|
296
|
|
-
|
297
|
|
- // Grimoire of Gaia... though I did not expect them to have done a good job with that...
|
298
|
|
- if (MD.GoG.mLoaded) {
|
299
|
|
- OreDictManager.INSTANCE.setTarget(OP.chunkGt, MT.Fe, ST.make(MD.GoG, "item.GrimoireOfGaia.Shard", 1, 0));
|
300
|
|
- OreDictManager.INSTANCE.setTarget(OP.chunkGt, MT.Au, ST.make(MD.GoG, "item.GrimoireOfGaia.Shard", 1, 1));
|
301
|
|
- OM.data(MD.GoG, "item.GrimoireOfGaia.Shard" , 1, 2, MT.Diamond , U4);
|
302
|
|
- OM.data(MD.GoG, "item.GrimoireOfGaia.Shard" , 1, 3, MT.Emerald , U4);
|
303
|
|
- OM.data(MD.GoG, "item.GrimoireOfGaia.Shard" , 1, 4, MT.NetherStar , U4);
|
304
|
|
- OM.data(MD.GoG, "item.GrimoireOfGaia.Shard" , 1, 5, MT.EnderPearl , U4);
|
305
|
|
- OM.data(MD.GoG, "item.GrimoireOfGaia.Shard" , 1, 6, MT.Blaze , U8);
|
306
|
|
- OM.data(MD.GoG, "item.GrimoireOfGaia.Fragment" , 1, 0, MT.Emerald , U8);
|
307
|
|
- }
|
308
|
|
-
|
309
|
|
- // Seems like it isn't "better" in all aspects.
|
310
|
|
- if (MD.BETTER_RECORDS.mLoaded) {
|
311
|
|
- OM.reg(OD.record, ST.make(MD.BETTER_RECORDS, "urlrecord", 1, 0));
|
312
|
|
- OM.reg(OD.record, ST.make(MD.BETTER_RECORDS, "urlmultirecord", 1, 0));
|
313
|
|
- }
|
314
|
|
- }
|
315
|
|
-
|
316
|
|
- @Override
|
317
|
|
- public void onModPostInit2(FMLPostInitializationEvent aEvent) {
|
318
|
|
- OUT.println(getModNameForLog() + ": Checking IC2 Recipe Lists.");
|
319
|
|
- if (DISABLE_ALL_IC2_COMPRESSOR_RECIPES ) ic2.api.recipe.Recipes.compressor.getRecipes().clear();
|
320
|
|
- if (DISABLE_ALL_IC2_EXTRACTOR_RECIPES ) ic2.api.recipe.Recipes.extractor .getRecipes().clear();
|
321
|
|
- if (DISABLE_ALL_IC2_MACERATOR_RECIPES ) ic2.api.recipe.Recipes.macerator .getRecipes().clear();
|
322
|
|
- if (DISABLE_ALL_IC2_OREWASHER_RECIPES ) ic2.api.recipe.Recipes.oreWashing.getRecipes().clear();
|
323
|
|
- if (DISABLE_ALL_IC2_CENTRIFUGE_RECIPES ) ic2.api.recipe.Recipes.centrifuge.getRecipes().clear();
|
324
|
|
-
|
325
|
|
- OUT.println(getModNameForLog() + ": Registering things that are considered Flowers by Bumblebees.");
|
326
|
|
- if (MD.BoP.mLoaded) {
|
327
|
|
- BlocksGT.FLOWERS.add(ST.block(MD.BoP, "flowers"));
|
328
|
|
- BlocksGT.FLOWERS.add(ST.block(MD.BoP, "flowers2"));
|
329
|
|
- }
|
330
|
|
- if (MD.EBXL.mLoaded) {
|
331
|
|
- BlocksGT.FLOWERS.add(ST.block(MD.EBXL, "flower1"));
|
332
|
|
- BlocksGT.FLOWERS.add(ST.block(MD.EBXL, "flower2"));
|
333
|
|
- BlocksGT.FLOWERS.add(ST.block(MD.EBXL, "flower3"));
|
334
|
|
- }
|
335
|
|
- if (MD.TCFM.mLoaded) {
|
336
|
|
- BlocksGT.FLOWERS.add(ST.block(MD.TCFM, "InkFlower"));
|
337
|
|
- BlocksGT.FLOWERS.add(ST.block(MD.TCFM, "UmbralBush"));
|
338
|
|
- }
|
339
|
|
- if (MD.BP.mLoaded) {
|
340
|
|
- BlocksGT.FLOWERS.add(ST.block(MD.BP, "indigo_flower"));
|
341
|
|
- }
|
342
|
|
- if (MD.ARS.mLoaded) {
|
343
|
|
- BlocksGT.FLOWERS.add(ST.block(MD.ARS, "blueOrchid"));
|
344
|
|
- }
|
345
|
|
-
|
346
|
|
- OUT.println(getModNameForLog() + ": Registering other Mods Enchantments for Materials");
|
347
|
|
- for (Enchantment tEnchant : Enchantment.enchantmentsList) if (tEnchant != null) {
|
348
|
|
- if ("enchantment.Magnetization".equalsIgnoreCase(tEnchant.getName())) {
|
349
|
|
- for (OreDictMaterial tMaterial : MT.ALL_MATERIALS_REGISTERED_HERE) {
|
350
|
|
- if (tMaterial == MT.NeodymiumMagnetic) {
|
351
|
|
- tMaterial.addEnchantmentForTools(tEnchant, 3).addEnchantmentForArmors(tEnchant, 3);
|
352
|
|
- } else if (tMaterial == MT.MeteoricSteel || tMaterial == MT.Meteorite) {
|
353
|
|
- tMaterial.addEnchantmentForTools(tEnchant, 2).addEnchantmentForArmors(tEnchant, 2);
|
354
|
|
- } else if (tMaterial.contains(TD.Properties.MAGNETIC_ACTIVE)) {
|
355
|
|
- tMaterial.addEnchantmentForTools(tEnchant, 1).addEnchantmentForArmors(tEnchant, 1);
|
356
|
|
- }
|
357
|
|
- }
|
358
|
|
- }
|
359
|
|
- if ("enchantment.Cold Touch".equalsIgnoreCase(tEnchant.getName())) {
|
360
|
|
- MT.Ice .addEnchantmentForTools(tEnchant, 1);
|
361
|
|
- MT.Snow .addEnchantmentForTools(tEnchant, 1);
|
362
|
|
- MT.FrozenIron .addEnchantmentForTools(tEnchant, 2);
|
363
|
|
- MT.Blizz .addEnchantmentForTools(tEnchant, 3);
|
364
|
|
- MT.Frezarite .addEnchantmentForTools(tEnchant, 4);
|
365
|
|
- MT.InfusedWater .addEnchantmentForTools(tEnchant, 4);
|
366
|
|
- MT.Cryotheum .addEnchantmentForTools(tEnchant, 5);
|
367
|
|
- }
|
368
|
|
- if ("enchantment.frost_walker".equalsIgnoreCase(tEnchant.getName())) {
|
369
|
|
- MT.Ice .addEnchantmentForArmors(tEnchant, 1);
|
370
|
|
- MT.Snow .addEnchantmentForArmors(tEnchant, 1);
|
371
|
|
- MT.FrozenIron .addEnchantmentForArmors(tEnchant, 1);
|
372
|
|
- MT.Blizz .addEnchantmentForArmors(tEnchant, 1);
|
373
|
|
- MT.Frezarite .addEnchantmentForArmors(tEnchant, 1);
|
374
|
|
- MT.InfusedWater .addEnchantmentForArmors(tEnchant, 1);
|
375
|
|
- MT.Cryotheum .addEnchantmentForArmors(tEnchant, 1);
|
376
|
|
- }
|
377
|
|
- if ("enchantment.railcraft.crowbar.implosion".equalsIgnoreCase(tEnchant.getName())) {
|
378
|
|
- for (OreDictMaterial tMat : ANY.Emerald.mToThis) tMat.addEnchantmentForTools(tEnchant, 5);
|
379
|
|
- for (OreDictMaterial tMat : ANY.Sapphire.mToThis) tMat.addEnchantmentForTools(tEnchant, 3);
|
380
|
|
- MT.Spinel .addEnchantmentForTools(tEnchant, 3);
|
381
|
|
- MT.BalasRuby .addEnchantmentForTools(tEnchant, 3);
|
382
|
|
- MT.Almandine .addEnchantmentForTools(tEnchant, 2);
|
383
|
|
- MT.Grossular .addEnchantmentForTools(tEnchant, 2);
|
384
|
|
- MT.Pyrope .addEnchantmentForTools(tEnchant, 2);
|
385
|
|
- MT.Spessartine .addEnchantmentForTools(tEnchant, 2);
|
386
|
|
- MT.Andradite .addEnchantmentForTools(tEnchant, 2);
|
387
|
|
- MT.Uvarovite .addEnchantmentForTools(tEnchant, 2);
|
388
|
|
- MT.Topaz .addEnchantmentForTools(tEnchant, 5);
|
389
|
|
- MT.BlueTopaz .addEnchantmentForTools(tEnchant, 5);
|
390
|
|
- MT.Tanzanite .addEnchantmentForTools(tEnchant, 4);
|
391
|
|
- MT.Alexandrite .addEnchantmentForTools(tEnchant, 5);
|
392
|
|
- MT.Opal .addEnchantmentForTools(tEnchant, 4);
|
393
|
|
- MT.Jasper .addEnchantmentForTools(tEnchant, 2);
|
394
|
|
- MT.Olivine .addEnchantmentForTools(tEnchant, 2);
|
395
|
|
- MT.Amethyst .addEnchantmentForTools(tEnchant, 3);
|
396
|
|
- MT.Dioptase .addEnchantmentForTools(tEnchant, 3);
|
397
|
|
- MT.Jade .addEnchantmentForTools(tEnchant, 7);
|
398
|
|
- MT.Craponite .addEnchantmentForTools(tEnchant, 1);
|
399
|
|
- MT.EnderAmethyst .addEnchantmentForTools(tEnchant, 5);
|
400
|
|
- }
|
401
|
|
- }
|
402
|
|
-
|
403
|
|
- OUT.println(getModNameForLog() + ": Doing Books for Shelves.");
|
404
|
|
- new LoaderBookList().run();
|
405
|
|
-
|
406
|
|
- OUT.println(getModNameForLog() + ": Fixing Chemical Formula Tooltips of certain Elements");
|
407
|
|
- /** Diatomic Elements get a Subscript 2 appended to their ToolTip after PostInit. That way the ToolTip Calculation works properly until PostInit happens. */
|
408
|
|
- for (OreDictMaterial tMaterial : OreDictMaterial.MATERIAL_MAP.values()) if (tMaterial.contains(TD.Atomic.DIATOMIC_NONMETAL)) tMaterial.mTooltipChemical += "\u2082";
|
409
|
|
-
|
410
|
|
- MT.P.mTooltipChemical += "\u2084";
|
411
|
|
- MT.S.mTooltipChemical += "\u2088";
|
412
|
|
- MT.Se.mTooltipChemical += "\u2088";
|
413
|
|
- }
|
414
|
|
-
|
415
|
|
- @Override
|
416
|
|
- public void onModServerStarting2(FMLServerStartingEvent aEvent) {
|
417
|
|
- if (DISABLE_ALL_IC2_COMPRESSOR_RECIPES ) ic2.api.recipe.Recipes.compressor.getRecipes().clear();
|
418
|
|
- if (DISABLE_ALL_IC2_EXTRACTOR_RECIPES ) ic2.api.recipe.Recipes.extractor .getRecipes().clear();
|
419
|
|
- if (DISABLE_ALL_IC2_MACERATOR_RECIPES ) ic2.api.recipe.Recipes.macerator .getRecipes().clear();
|
420
|
|
- if (DISABLE_ALL_IC2_OREWASHER_RECIPES ) ic2.api.recipe.Recipes.oreWashing.getRecipes().clear();
|
421
|
|
- if (DISABLE_ALL_IC2_CENTRIFUGE_RECIPES ) ic2.api.recipe.Recipes.centrifuge.getRecipes().clear();
|
422
|
|
- }
|
423
|
|
-
|
424
|
|
- @Override public void onModServerStarted2(FMLServerStartedEvent aEvent) {/**/}
|
425
|
|
- @Override public void onModServerStopping2(FMLServerStoppingEvent aEvent) {/**/}
|
426
|
|
- @Override public void onModServerStopped2(FMLServerStoppedEvent aEvent) {/**/}
|
|
1
|
+package gregapi;
|
|
2
|
+
|
|
3
|
+import static gregapi.data.CS.*;
|
|
4
|
+
|
|
5
|
+import java.util.ArrayList;
|
|
6
|
+import java.util.List;
|
|
7
|
+
|
|
8
|
+import cpw.mods.fml.common.LoadController;
|
|
9
|
+import cpw.mods.fml.common.Loader;
|
|
10
|
+import cpw.mods.fml.common.Mod;
|
|
11
|
+import cpw.mods.fml.common.ModContainer;
|
|
12
|
+import cpw.mods.fml.common.event.FMLInitializationEvent;
|
|
13
|
+import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
|
14
|
+import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|
15
|
+import cpw.mods.fml.common.event.FMLServerStartedEvent;
|
|
16
|
+import cpw.mods.fml.common.event.FMLServerStartingEvent;
|
|
17
|
+import cpw.mods.fml.common.event.FMLServerStoppedEvent;
|
|
18
|
+import cpw.mods.fml.common.event.FMLServerStoppingEvent;
|
|
19
|
+import gregapi.api.Abstract_Mod;
|
|
20
|
+import gregapi.api.Abstract_Proxy;
|
|
21
|
+import gregapi.data.ANY;
|
|
22
|
+import gregapi.data.CS.BlocksGT;
|
|
23
|
+import gregapi.data.CS.ModIDs;
|
|
24
|
+import gregapi.data.IL;
|
|
25
|
+import gregapi.data.MD;
|
|
26
|
+import gregapi.data.MT;
|
|
27
|
+import gregapi.data.OD;
|
|
28
|
+import gregapi.data.OP;
|
|
29
|
+import gregapi.data.TD;
|
|
30
|
+import gregapi.load.LoaderBookList;
|
|
31
|
+import gregapi.load.LoaderItemData;
|
|
32
|
+import gregapi.load.LoaderItemList;
|
|
33
|
+import gregapi.load.LoaderUnificationTargets;
|
|
34
|
+import gregapi.load.LoaderWoodDictionary;
|
|
35
|
+import gregapi.oredict.OreDictItemData;
|
|
36
|
+import gregapi.oredict.OreDictManager;
|
|
37
|
+import gregapi.oredict.OreDictMaterial;
|
|
38
|
+import gregapi.util.OM;
|
|
39
|
+import gregapi.util.ST;
|
|
40
|
+import gregapi.util.UT;
|
|
41
|
+import net.minecraft.enchantment.Enchantment;
|
|
42
|
+import net.minecraft.item.Item;
|
|
43
|
+
|
|
44
|
+/**
|
|
45
|
+ * @author Gregorius Techneticies
|
|
46
|
+ *
|
|
47
|
+ * This loads after the compatible Mods. The regular API loads before all compatible Mods.
|
|
48
|
+ */
|
|
49
|
+@Mod(modid=ModIDs.GAPI_POST, name="Greg-API-Post", version="GT6-MC1710", dependencies="required-after:"+ModIDs.GAPI+"; after:"+ModIDs.MD8+"; after:"+ModIDs.IC2+"; after:"+ModIDs.IC2C+"; after:"+ModIDs.NC+"; after:"+ModIDs.IHL+"; after:"+ModIDs.FMB+"; after:"+ModIDs.BAUBLES+"; after:"+ModIDs.GaSu+"; after:"+ModIDs.GaNe+"; after:"+ModIDs.GaEn+"; after:"+ModIDs.WdSt+"; after:"+ModIDs.CrGu+"; after:"+ModIDs.COFH_API+"; after:"+ModIDs.COFH_API_ENERGY+"; after:"+ModIDs.CC+"; after:"+ModIDs.OC+"; after:"+ModIDs.DE+"; after:"+ModIDs.FR+"; after:"+ModIDs.FRMB+"; after:"+ModIDs.BINNIE+"; after:"+ModIDs.BINNIE_BEE+"; after:"+ModIDs.BINNIE_TREE+"; after:"+ModIDs.BINNIE_GENETICS+"; after:"+ModIDs.BINNIE_BOTANY+"; after:"+ModIDs.IE+"; after:"+ModIDs.UB+"; after:"+ModIDs.COG+"; after:"+ModIDs.PFAA+"; after:"+ModIDs.ARS+"; after:"+ModIDs.TC+"; after:"+ModIDs.TCFM+"; after:"+ModIDs.BOTA+"; after:"+ModIDs.WTCH+"; after:"+ModIDs.HOWL+"; after:"+ModIDs.MoCr+"; after:"+ModIDs.GoG+"; after:"+ModIDs.LycM+"; after:"+ModIDs.LycM_Arctic+"; after:"+ModIDs.LycM_Demon+"; after:"+ModIDs.LycM_Desert+"; after:"+ModIDs.LycM_Forest+"; after:"+ModIDs.LycM_Fresh+"; after:"+ModIDs.LycM_Inferno+"; after:"+ModIDs.LycM_Jungle+"; after:"+ModIDs.LycM_Mountain+"; after:"+ModIDs.LycM_Plains+"; after:"+ModIDs.LycM_Salt+"; after:"+ModIDs.LycM_Shadow+"; after:"+ModIDs.LycM_Swamp+"; after:"+ModIDs.RC+"; after:"+ModIDs.BP+"; after:"+ModIDs.PR+"; after:"+ModIDs.PR_EXPANSION+"; after:"+ModIDs.PR_INTEGRATION+"; after:"+ModIDs.PR_TRANSMISSION+"; after:"+ModIDs.PR_TRANSPORT+"; after:"+ModIDs.PE+"; after:"+ModIDs.AE+"; after:"+ModIDs.MO+"; after:"+ModIDs.TE_FOUNDATION+"; after:"+ModIDs.TE_DYNAMICS+"; after:"+ModIDs.TE+"; after:"+ModIDs.ZTONES+"; after:"+ModIDs.CHSL+"; after:"+ModIDs.EtFu+"; after:"+ModIDs.BbLC+"; after:"+ModIDs.CARP+"; after:"+ModIDs.BETTER_RECORDS+"; after:"+ModIDs.TF+"; after:"+ModIDs.ERE+"; after:"+ModIDs.MFR+"; after:"+ModIDs.PnC+"; after:"+ModIDs.ExU+"; after:"+ModIDs.ExS+"; after:"+ModIDs.EIO+"; after:"+ModIDs.RT+"; after:"+ModIDs.AA+"; after:"+ModIDs.HaC+"; after:"+ModIDs.CookBook+"; after:"+ModIDs.APC+"; after:"+ModIDs.ENVM+"; after:"+ModIDs.MaCr+"; after:"+ModIDs.BC_TRANSPORT+"; after:"+ModIDs.BC_SILICON+"; after:"+ModIDs.BC_FACTORY+"; after:"+ModIDs.BC_ENERGY+"; after:"+ModIDs.BC_ROBOTICS+"; after:"+ModIDs.BC+"; after:"+ModIDs.BC_BUILDERS+"; after:"+ModIDs.MgC+"; after:"+ModIDs.BR+"; after:"+ModIDs.HBM+"; after:"+ModIDs.DRGN+"; after:"+ModIDs.ElC+"; after:"+ModIDs.CrC+"; after:"+ModIDs.ReC+"; after:"+ModIDs.RoC+"; after:"+ModIDs.Mek+"; after:"+ModIDs.Mek_Tools+"; after:"+ModIDs.Mek_Generators+"; after:"+ModIDs.GC+"; after:"+ModIDs.GC_PLANETS+"; after:"+ModIDs.GC_GALAXYSPACE+"; after:"+ModIDs.VULPES+"; after:"+ModIDs.GC_ADV_ROCKETRY+"; after:"+ModIDs.BTL+"; after:"+ModIDs.AETHER+"; after:"+ModIDs.ATUM+"; after:"+ModIDs.EBXL+"; after:"+ModIDs.BoP+"; after:"+ModIDs.HiL+"; after:"+ModIDs.ATG+"; after:"+ModIDs.RTG+"; after:"+ModIDs.RWG+"; after:"+ModIDs.MYST+"; after:"+ModIDs.WARPBOOK+"; after:"+ModIDs.LOSTBOOKS+"; after:"+ModIDs.EUREKA+"; after:"+ModIDs.ENCHIRIDION+"; after:"+ModIDs.ENCHIRIDION2+"; after:"+ModIDs.SmAc+"; after:"+ModIDs.HQM+"; after:"+ModIDs.JABBA+"; after:"+ModIDs.MaCu+"; after:"+ModIDs.PdC+"; after:"+ModIDs.Bamboo+"; after:"+ModIDs.GrC+"; after:"+ModIDs.GrC_Apples+"; after:"+ModIDs.GrC_Bamboo+"; after:"+ModIDs.GrC_Bees+"; after:"+ModIDs.GrC_Cellar+"; after:"+ModIDs.GrC_Fish+"; after:"+ModIDs.GrC_Grapes+"; after:"+ModIDs.GrC_Hops+"; after:"+ModIDs.GrC_Milk+"; after:"+ModIDs.GrC_Rice+"; after:"+ModIDs.BWM+"; after:"+ModIDs.OMT+"; after:"+ModIDs.TG+"; after:"+ModIDs.FM+"; after:"+ModIDs.FZ+"; after:"+ModIDs.MNTL+"; after:"+ModIDs.OB+"; after:"+ModIDs.TiC+"; after:"+ModIDs.WR_CBE_C+"; after:"+ModIDs.WR_CBE_A+"; after:"+ModIDs.WR_CBE_L+"; after:inventorytweaks; after:ironbackpacks; after:journeymap; after:LogisticsPipes; after:LunatriusCore; after:NEIAddons; after:NEIAddons|Developer; after:NEIAddons|AppEng; after:NEIAddons|Botany; after:NEIAddons|Forestry; after:NEIAddons|CraftingTables; after:NEIAddons|ExNihilo; after:neiintegration; after:openglasses; after:simplyjetpacks; after:Stackie; after:StevesCarts; after:TiCTooltips; after:worldedit; after:McMultipart")
|
|
50
|
+public class GT_API_Post extends Abstract_Mod {
|
|
51
|
+ public GT_API_Post() {GAPI_POST = this;}
|
|
52
|
+
|
|
53
|
+ @Override public String getModID() {return MD.GAPI_POST.mID;}
|
|
54
|
+ @Override public String getModName() {return MD.GAPI_POST.mName;}
|
|
55
|
+ @Override public String getModNameForLog() {return "GT_API_POST";}
|
|
56
|
+ @Override public Abstract_Proxy getProxy() {return null;}
|
|
57
|
+
|
|
58
|
+ @Mod.EventHandler public final void onPreLoad (FMLPreInitializationEvent aEvent) {onModPreInit(aEvent);}
|
|
59
|
+ @Mod.EventHandler public final void onLoad (FMLInitializationEvent aEvent) {onModInit(aEvent);}
|
|
60
|
+ @Mod.EventHandler public final void onPostLoad (FMLPostInitializationEvent aEvent) {onModPostInit(aEvent);}
|
|
61
|
+ @Mod.EventHandler public final void onServerStarting (FMLServerStartingEvent aEvent) {onModServerStarting(aEvent);}
|
|
62
|
+ @Mod.EventHandler public final void onServerStarted (FMLServerStartedEvent aEvent) {onModServerStarted(aEvent);}
|
|
63
|
+ @Mod.EventHandler public final void onServerStopping (FMLServerStoppingEvent aEvent) {onModServerStopping(aEvent);}
|
|
64
|
+ @Mod.EventHandler public final void onServerStopped (FMLServerStoppedEvent aEvent) {onModServerStopped(aEvent);}
|
|
65
|
+
|
|
66
|
+ @Override
|
|
67
|
+ public void onModPreInit2(FMLPreInitializationEvent aEvent) {
|
|
68
|
+ try {
|
|
69
|
+ OUT.println(getModNameForLog() + ": Sorting Greg-API-Post to the end of the Mod List for further processing.");
|
|
70
|
+ LoadController tLoadController = ((LoadController)UT.Reflection.getFieldContent(Loader.instance(), "modController", T, T));
|
|
71
|
+ List<ModContainer> tModList = tLoadController.getActiveModList(), tNewModsList = new ArrayList(tModList.size());
|
|
72
|
+ ModContainer tGregTech = null;
|
|
73
|
+ for (short i = 0; i < tModList.size(); i++) {
|
|
74
|
+ ModContainer tMod = tModList.get(i);
|
|
75
|
+ if (tMod.getModId().equalsIgnoreCase(MD.GAPI_POST.mID)) tGregTech = tMod; else tNewModsList.add(tMod);
|
|
76
|
+ }
|
|
77
|
+ if (tGregTech != null) tNewModsList.add(tGregTech);
|
|
78
|
+ UT.Reflection.getField(tLoadController, "activeModList", T, T).set(tLoadController, tNewModsList);
|
|
79
|
+ } catch(Throwable e) {
|
|
80
|
+ if (D1) e.printStackTrace(ERR);
|
|
81
|
+ }
|
|
82
|
+
|
|
83
|
+ // Fixing Items of certain Mods.
|
|
84
|
+ for (Item tItem : new Item[] {
|
|
85
|
+ ST.item(MD.GrC_Grapes, "grc.grapes")
|
|
86
|
+ , ST.item(MD.FR, "letters")
|
|
87
|
+ , ST.item(MD.FZ, "acid")
|
|
88
|
+ }) if (tItem != null) tItem.setMaxDamage(0).setHasSubtypes(T);
|
|
89
|
+
|
|
90
|
+ new LoaderItemList().run();
|
|
91
|
+ new LoaderItemData().run();
|
|
92
|
+ new LoaderUnificationTargets().run();
|
|
93
|
+
|
|
94
|
+ if (MD.MET.mLoaded) {
|
|
95
|
+ MT.OREMATS.Bauxite .addOreByProducts(MT.Alduorite );
|
|
96
|
+ MT.OREMATS.Chalcopyrite .addOreByProducts(MT.Infuscolium );
|
|
97
|
+ MT.OREMATS.Scheelite .addOreByProducts(MT.Rubracium );
|
|
98
|
+ MT.OREMATS.Pentlandite .addOreByProducts(MT.Meutoite );
|
|
99
|
+ MT.OREMATS.Magnesite .addOreByProducts(MT.Lemurite );
|
|
100
|
+ MT.OREMATS.Stibnite .addOreByProducts(MT.Ceruclase );
|
|
101
|
+ MT.TiO2 .addOreByProducts(MT.Atlarus );
|
|
102
|
+ MT.OREMATS.Garnierite .addOreByProducts(MT.Oureclase );
|
|
103
|
+ MT.OREMATS.Cooperite .addOreByProducts(MT.Kalendrite );
|
|
104
|
+ MT.OREMATS.Ilmenite .addOreByProducts(MT.Orichalcum );
|
|
105
|
+ MT.OREMATS.Sphalerite .addOreByProducts(MT.Carmot );
|
|
106
|
+ MT.OREMATS.Cinnabar .addOreByProducts(MT.Sanguinite );
|
|
107
|
+ MT.OREMATS.Malachite .addOreByProducts(MT.Vyroxeres );
|
|
108
|
+ MT.MnO2 .addOreByProducts(MT.Eximite );
|
|
109
|
+ MT.OREMATS.Cobaltite .addOreByProducts(MT.Prometheum );
|
|
110
|
+ MT.OREMATS.Cassiterite .addOreByProducts(MT.Ignatius );
|
|
111
|
+ MT.OREMATS.Wolframite .addOreByProducts(MT.Vulcanite );
|
|
112
|
+ MT.Fe2O3 .addOreByProducts(MT.DeepIron );
|
|
113
|
+ MT.OREMATS.Magnetite .addOreByProducts(MT.ShadowIron );
|
|
114
|
+ }
|
|
115
|
+ if (MD.Mek.mLoaded) {
|
|
116
|
+ MT.OREMATS.Galena.addOreByProducts(MT.FakeOsmium);
|
|
117
|
+ MT.OREMATS.Magnetite.addOreByProducts(MT.FakeOsmium);
|
|
118
|
+ MT.OREMATS.Ferrovanadium.addOreByProducts(MT.FakeOsmium);
|
|
119
|
+ MT.OREMATS.BasalticMineralSand.addOreByProducts(MT.FakeOsmium);
|
|
120
|
+ MT.OREMATS.GraniticMineralSand.addOreByProducts(MT.FakeOsmium);
|
|
121
|
+ }
|
|
122
|
+ if (MD.TiC.mLoaded) {
|
|
123
|
+ MT.Co.addOreByProducts(MT.Ardite);
|
|
124
|
+ }
|
|
125
|
+ if (MD.BR.mLoaded) {
|
|
126
|
+ MT.Th.addOreByProducts(MT.Cyanite);
|
|
127
|
+ MT.Monazite.addOreByProducts(MT.Cyanite);
|
|
128
|
+ MT.Forcicium.addOreByProducts(MT.Cyanite);
|
|
129
|
+ MT.Forcillium.addOreByProducts(MT.Cyanite);
|
|
130
|
+ MT.OREMATS.Pitchblende.addOreByProducts(MT.Yellorium);
|
|
131
|
+ MT.OREMATS.Uraninite.addOreByProducts(MT.Yellorium);
|
|
132
|
+ MT.U_238.addOreByProducts(MT.Yellorium);
|
|
133
|
+ MT.Pu.addOreByProducts(MT.Blutonium);
|
|
134
|
+ MT.Am.addOreByProducts(MT.Blutonium);
|
|
135
|
+ }
|
|
136
|
+ if (MD.AE.mLoaded) {
|
|
137
|
+ OP.gem .disableItemGeneration(MT.CertusQuartz, MT.Fluix);
|
|
138
|
+ OP.dust .disableItemGeneration(MT.CertusQuartz, MT.Fluix);
|
|
139
|
+ }
|
|
140
|
+ if (MD.AA.mLoaded) {
|
|
141
|
+ MT.OREMATS.Barite.addOreByProducts(MT.BlackQuartz);
|
|
142
|
+ }
|
|
143
|
+
|
|
144
|
+ }
|
|
145
|
+
|
|
146
|
+ @Override
|
|
147
|
+ public void onModInit2(FMLInitializationEvent aEvent) {
|
|
148
|
+ new LoaderWoodDictionary().run();
|
|
149
|
+
|
|
150
|
+ // Atum violates the "Items have to be created in preInit" Rule...
|
|
151
|
+ if (MD.ATUM.mLoaded) {
|
|
152
|
+ IL.ATUM_Scarab .set(ST.make(MD.ATUM, "item.scarab" , 1, 0), new OreDictItemData(MT.Au, 4*U, MT.Diamond, U));
|
|
153
|
+ IL.ATUM_Limestone .set(ST.make(MD.ATUM, "tile.stone" , 1, 0), OP.stone.dat(MT.Limestone));
|
|
154
|
+ IL.ATUM_Limecobble .set(ST.make(MD.ATUM, "tile.cobble" , 1, 0), OP.stone.dat(MT.Limestone));
|
|
155
|
+
|
|
156
|
+ OM.reg("cropDate" , ST.make(MD.ATUM, "item.date", 1, 0));
|
|
157
|
+ OM.reg("cropFlax" , ST.make(MD.ATUM, "item.flax", 1, 0));
|
|
158
|
+ OM.reg("seedFlax" , ST.make(MD.ATUM, "item.flaxSeeds", 1, 0));
|
|
159
|
+ OM.reg("itemPelt" , ST.make(MD.ATUM, "item.wolfPelt", 1, 0));
|
|
160
|
+ OM.reg(OP.dust, MT.Ectoplasm , ST.make(MD.ATUM, "item.ectoplasm", 1, 0));
|
|
161
|
+ OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.ironOre" , 1, 0), OP.oreLimestone.dat(MT.Fe ));
|
|
162
|
+ OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.goldOre" , 1, 0), OP.oreLimestone.dat(MT.Au ));
|
|
163
|
+ OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.redstoneOre" , 1, 0), OP.oreLimestone.dat(MT.Redstone ));
|
|
164
|
+ OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.lapisOre" , 1, 0), OP.oreLimestone.dat(MT.Lapis ));
|
|
165
|
+ OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.coalOre" , 1, 0), OP.oreLimestone.dat(MT.Coal ));
|
|
166
|
+ OreDictManager.INSTANCE.setItemData_(ST.make(MD.ATUM, "tile.diamondOre" , 1, 0), OP.oreLimestone.dat(MT.Diamond ));
|
|
167
|
+
|
|
168
|
+ OM.data(MD.ATUM, "item.stoneChunk", 1, 0, MT.Limestone, U);
|
|
169
|
+ OM.data(MD.ATUM, "tile.sand", 1, W, MT.Sand, U);
|
|
170
|
+ OM.data(MD.ATUM, "tile.framedGlass", 1, W, MT.Glass, U);
|
|
171
|
+ OM.data(MD.ATUM, "tile.crystalGlass", 1, W, MT.Glass, U);
|
|
172
|
+ OM.data(MD.ATUM, "tile.framedStainedGlass", 1, W, MT.Glass, U);
|
|
173
|
+ OM.data(MD.ATUM, "tile.crystalStainedGlass", 1, W, MT.Glass, U);
|
|
174
|
+ OM.data(MD.ATUM, "tile.thinFramedGlass", 1, W, MT.Glass, 3*U8);
|
|
175
|
+ OM.data(MD.ATUM, "tile.thinCrystalGlass", 1, W, MT.Glass, 3*U8);
|
|
176
|
+ OM.data(MD.ATUM, "tile.thinFramedStainedGlass", 1, W, MT.Glass, 3*U8);
|
|
177
|
+ OM.data(MD.ATUM, "tile.thinCrystalStainedGlass", 1, W, MT.Glass, 3*U8);
|
|
178
|
+
|
|
179
|
+ OM.data(MD.ATUM, "item.loot", 1, 2, MT.Ag , 2*U);
|
|
180
|
+ OM.data(MD.ATUM, "item.loot", 1, 3, MT.Ag , 2*U);
|
|
181
|
+ OM.data(MD.ATUM, "item.loot", 1, 4, MT.Au , 2*U);
|
|
182
|
+ OM.data(MD.ATUM, "item.loot", 1, 5, MT.Au , 2*U);
|
|
183
|
+ OM.data(MD.ATUM, "item.loot", 1, 6, MT.Au , 2*U, MT.BlueSapphire , 2*U);
|
|
184
|
+ OM.data(MD.ATUM, "item.loot", 1, 7, MT.Au , 2*U, MT.BlueSapphire , 2*U);
|
|
185
|
+ OM.data(MD.ATUM, "item.loot", 1, 8, MT.Au , 2*U, MT.Ruby , 2*U);
|
|
186
|
+ OM.data(MD.ATUM, "item.loot", 1, 9, MT.Au , 2*U, MT.Ruby , 2*U);
|
|
187
|
+ OM.data(MD.ATUM, "item.loot", 1, 10, MT.Au , 2*U, MT.Emerald , 2*U);
|
|
188
|
+ OM.data(MD.ATUM, "item.loot", 1, 11, MT.Au , 2*U, MT.Emerald , 2*U);
|
|
189
|
+ OM.data(MD.ATUM, "item.loot", 1, 12, MT.Au , 2*U, MT.Diamond , 2*U);
|
|
190
|
+ OM.data(MD.ATUM, "item.loot", 1, 13, MT.Au , 2*U, MT.Diamond , 2*U);
|
|
191
|
+ OM.data(MD.ATUM, "item.loot", 1, 34, MT.Ag , U);
|
|
192
|
+ OM.data(MD.ATUM, "item.loot", 1, 35, MT.Ag , U);
|
|
193
|
+ OM.data(MD.ATUM, "item.loot", 1, 36, MT.Au , U);
|
|
194
|
+ OM.data(MD.ATUM, "item.loot", 1, 37, MT.Au , U);
|
|
195
|
+ OM.data(MD.ATUM, "item.loot", 1, 38, MT.Au , U, MT.BlueSapphire , U);
|
|
196
|
+ OM.data(MD.ATUM, "item.loot", 1, 39, MT.Au , U, MT.BlueSapphire , U);
|
|
197
|
+ OM.data(MD.ATUM, "item.loot", 1, 40, MT.Au , U, MT.Ruby , U);
|
|
198
|
+ OM.data(MD.ATUM, "item.loot", 1, 41, MT.Au , U, MT.Ruby , U);
|
|
199
|
+ OM.data(MD.ATUM, "item.loot", 1, 42, MT.Au , U, MT.Emerald , U);
|
|
200
|
+ OM.data(MD.ATUM, "item.loot", 1, 43, MT.Au , U, MT.Emerald , U);
|
|
201
|
+ OM.data(MD.ATUM, "item.loot", 1, 44, MT.Au , U, MT.Diamond , U);
|
|
202
|
+ OM.data(MD.ATUM, "item.loot", 1, 45, MT.Au , U, MT.Diamond , U);
|
|
203
|
+ OM.data(MD.ATUM, "item.loot", 1, 66, MT.Ag , U);
|
|
204
|
+ OM.data(MD.ATUM, "item.loot", 1, 67, MT.Ag , U);
|
|
205
|
+ OM.data(MD.ATUM, "item.loot", 1, 68, MT.Au , U);
|
|
206
|
+ OM.data(MD.ATUM, "item.loot", 1, 69, MT.Au , U);
|
|
207
|
+ OM.data(MD.ATUM, "item.loot", 1, 70, MT.Au , U, MT.BlueSapphire , U);
|
|
208
|
+ OM.data(MD.ATUM, "item.loot", 1, 71, MT.Au , U, MT.BlueSapphire , U);
|
|
209
|
+ OM.data(MD.ATUM, "item.loot", 1, 72, MT.Au , U, MT.Ruby , U);
|
|
210
|
+ OM.data(MD.ATUM, "item.loot", 1, 73, MT.Au , U, MT.Ruby , U);
|
|
211
|
+ OM.data(MD.ATUM, "item.loot", 1, 74, MT.Au , U, MT.Emerald , U);
|
|
212
|
+ OM.data(MD.ATUM, "item.loot", 1, 75, MT.Au , U, MT.Emerald , U);
|
|
213
|
+ OM.data(MD.ATUM, "item.loot", 1, 76, MT.Au , U, MT.Diamond , U);
|
|
214
|
+ OM.data(MD.ATUM, "item.loot", 1, 77, MT.Au , U, MT.Diamond , U);
|
|
215
|
+ OM.data(MD.ATUM, "item.loot", 1, 98, MT.Ag , U);
|
|
216
|
+ OM.data(MD.ATUM, "item.loot", 1, 99, MT.Ag , U);
|
|
217
|
+ OM.data(MD.ATUM, "item.loot", 1,100, MT.Au , U);
|
|
218
|
+ OM.data(MD.ATUM, "item.loot", 1,101, MT.Au , U);
|
|
219
|
+ OM.data(MD.ATUM, "item.loot", 1,102, MT.Au , U, MT.BlueSapphire , U);
|
|
220
|
+ OM.data(MD.ATUM, "item.loot", 1,103, MT.Au , U, MT.BlueSapphire , U);
|
|
221
|
+ OM.data(MD.ATUM, "item.loot", 1,104, MT.Au , U, MT.Ruby , U);
|
|
222
|
+ OM.data(MD.ATUM, "item.loot", 1,105, MT.Au , U, MT.Ruby , U);
|
|
223
|
+ OM.data(MD.ATUM, "item.loot", 1,106, MT.Au , U, MT.Emerald , U);
|
|
224
|
+ OM.data(MD.ATUM, "item.loot", 1,107, MT.Au , U, MT.Emerald , U);
|
|
225
|
+ OM.data(MD.ATUM, "item.loot", 1,108, MT.Au , U, MT.Diamond , U);
|
|
226
|
+ OM.data(MD.ATUM, "item.loot", 1,109, MT.Au , U, MT.Diamond , U);
|
|
227
|
+ OM.data(MD.ATUM, "item.loot", 1,130, MT.Ag , 2*U);
|
|
228
|
+ OM.data(MD.ATUM, "item.loot", 1,131, MT.Ag , 2*U);
|
|
229
|
+ OM.data(MD.ATUM, "item.loot", 1,132, MT.Au , 2*U);
|
|
230
|
+ OM.data(MD.ATUM, "item.loot", 1,133, MT.Au , 2*U);
|
|
231
|
+ OM.data(MD.ATUM, "item.loot", 1,134, MT.Au , 2*U, MT.BlueSapphire , 2*U);
|
|
232
|
+ OM.data(MD.ATUM, "item.loot", 1,135, MT.Au , 2*U, MT.BlueSapphire , 2*U);
|
|
233
|
+ OM.data(MD.ATUM, "item.loot", 1,136, MT.Au , 2*U, MT.Ruby , 2*U);
|
|
234
|
+ OM.data(MD.ATUM, "item.loot", 1,137, MT.Au , 2*U, MT.Ruby , 2*U);
|
|
235
|
+ OM.data(MD.ATUM, "item.loot", 1,138, MT.Au , 2*U, MT.Emerald , 2*U);
|
|
236
|
+ OM.data(MD.ATUM, "item.loot", 1,139, MT.Au , 2*U, MT.Emerald , 2*U);
|
|
237
|
+ OM.data(MD.ATUM, "item.loot", 1,140, MT.Au , 2*U, MT.Diamond , 2*U);
|
|
238
|
+ OM.data(MD.ATUM, "item.loot", 1,141, MT.Au , 2*U, MT.Diamond , 2*U);
|
|
239
|
+ }
|
|
240
|
+
|
|
241
|
+ // And Project Red violates that Rule aswell...
|
|
242
|
+ if (MD.PR.mLoaded) {
|
|
243
|
+ OreDictManager.INSTANCE.setTarget(OP.ingot , MT.RedAlloy , ST.make(MD.PR, "projectred.core.part", 1, 10));
|
|
244
|
+ OreDictManager.INSTANCE.setTarget(OP.ingot , MT.ElectrotineAlloy , ST.make(MD.PR, "projectred.core.part", 1, 55));
|
|
245
|
+ OreDictManager.INSTANCE.setTarget(OP.dust , MT.Electrotine , ST.make(MD.PR, "projectred.core.part", 1, 56));
|
|
246
|
+ }
|
|
247
|
+
|
|
248
|
+ // Okay I should not have wondered about Blue Power doing the same garbage considering Project Red...
|
|
249
|
+ if (MD.BP.mLoaded) {
|
|
250
|
+ OreDictManager.INSTANCE.setTarget(OP.ingot , MT.RedAlloy , ST.make(MD.BP, "red_alloy_ingot", 1, 0));
|
|
251
|
+ OreDictManager.INSTANCE.setTarget(OP.ingot , MT.BlueAlloy , ST.make(MD.BP, "blue_alloy_ingot", 1, 0));
|
|
252
|
+ OreDictManager.INSTANCE.setTarget(OP.ingot , MT.PurpleAlloy , ST.make(MD.BP, "purple_alloy_ingot", 1, 0));
|
|
253
|
+ OreDictManager.INSTANCE.setTarget(OP.dust , MT.Teslatite , ST.make(MD.BP, "teslatite_dust", 1, 0));
|
|
254
|
+ OreDictManager.INSTANCE.setTarget(OP.dust , MT.UNUSED.InfusedTeslatite , ST.make(MD.BP, "infused_teslatite_dust", 1, 0));
|
|
255
|
+ OM.reg("seedFlax" , ST.make(MD.BP, "flax_seeds", 1, 0));
|
|
256
|
+ OM.reg(DYE_OREDICTS_MIXABLE[DYE_INDEX_Purple] , ST.make(MD.BP, "indigo_dye", 1, 0));
|
|
257
|
+ OM.reg("cropIndigo" , ST.make(MD.BP, "indigo_flower", 1, 0));
|
|
258
|
+ OM.reg(OP.dustTiny.dat(MT.Zn) , ST.make(MD.BP, "zinc_tiny_dust", 1, 0));
|
|
259
|
+ OM.reg(OP.crushed.dat(MT.Zn) , ST.make(MD.BP, "zinc_ore_crushed", 1, 0));
|
|
260
|
+ OM.reg(OP.crushedPurified.dat(MT.Zn) , ST.make(MD.BP, "zinc_ore_purified", 1, 0));
|
|
261
|
+ OM.reg(OP.boule.dat(MT.Si) , ST.make(MD.BP, "silicon_boule", 1, 0));
|
|
262
|
+ }
|
|
263
|
+
|
|
264
|
+ // Yay for Chickenbones doing it wrong, I guess...
|
|
265
|
+ if (MD.WR_CBE_C.mLoaded) {
|
|
266
|
+ OreDictManager.INSTANCE.setTarget(OP.stick , MT.Obsidian , ST.make(MD.WR_CBE_C, "obsidianStick", 1, 0));
|
|
267
|
+ }
|
|
268
|
+
|
|
269
|
+ // Oh look, Matter Overdrive does this shit too...
|
|
270
|
+ if (MD.MO.mLoaded) {
|
|
271
|
+ OreDictManager.INSTANCE.setTarget(OP.gem , MT.Dilithium , ST.make(MD.MO, "dilithium_crystal", 1, 0));
|
|
272
|
+ OreDictManager.INSTANCE.setTarget(OP.dust , MT.TritaniumAlloy , ST.make(MD.MO, "tritanium_dust", 1, 0));
|
|
273
|
+ OreDictManager.INSTANCE.setTarget(OP.nugget , MT.TritaniumAlloy , ST.make(MD.MO, "tritanium_nugget", 1, 0));
|
|
274
|
+ OreDictManager.INSTANCE.setTarget(OP.ingot , MT.TritaniumAlloy , ST.make(MD.MO, "tritanium_ingot", 1, 0));
|
|
275
|
+ OreDictManager.INSTANCE.setTarget(OP.plate , MT.TritaniumAlloy , ST.make(MD.MO, "tritanium_plate", 1, 0));
|
|
276
|
+ }
|
|
277
|
+
|
|
278
|
+ // ThermalExpansion gets on this ShitList too I guess...
|
|
279
|
+ if (MD.TE.mLoaded) {
|
|
280
|
+ OM.data(MD.TE, "Tank" , 1, 1, ANY.Cu , U * 1, MT.Glass , U * 4);
|
|
281
|
+ OM.data(MD.TE, "Tank" , 1, 2, MT.Invar , U * 4, ANY.Cu , U * 1, MT.Glass , U * 4);
|
|
282
|
+ OM.data(MD.TE, "Tank" , 1, 3, MT.Invar , U * 4, ANY.Cu , U * 1, MT.Glass , U * 4);
|
|
283
|
+ OM.data(MD.TE, "Tank" , 1, 4, MT.Enderium , U * 4, MT.Invar , U * 4, ANY.Cu , U * 1, MT.Glass , U * 4);
|
|
284
|
+ }
|
|
285
|
+
|
|
286
|
+ // Wow, Ars Magica too is on this List, at least for its Blocks...
|
|
287
|
+ if (MD.ARS.mLoaded) {
|
|
288
|
+ IL.ARS_Cerublossom .set(ST.make(MD.ARS, "blueOrchid", 1, 0), null, "flowerCerublossom");
|
|
289
|
+ IL.ARS_DesertNova .set(ST.make(MD.ARS, "desertNova", 1, 0), null, "flowerDesertNova");
|
|
290
|
+ }
|
|
291
|
+
|
|
292
|
+ // Cooking for Blockheads is here too!...
|
|
293
|
+ if (MD.CookBook.mLoaded) {
|
|
294
|
+ OM.data(MD.CookBook, "recipebook", 1, W, MT.Paper, U*3);
|
|
295
|
+ }
|
|
296
|
+
|
|
297
|
+ // Grimoire of Gaia... though I did not expect them to have done a good job with that...
|
|
298
|
+ if (MD.GoG.mLoaded) {
|
|
299
|
+ OreDictManager.INSTANCE.setTarget(OP.chunkGt, MT.Fe, ST.make(MD.GoG, "item.GrimoireOfGaia.Shard", 1, 0));
|
|
300
|
+ OreDictManager.INSTANCE.setTarget(OP.chunkGt, MT.Au, ST.make(MD.GoG, "item.GrimoireOfGaia.Shard", 1, 1));
|
|
301
|
+ OM.data(MD.GoG, "item.GrimoireOfGaia.Shard" , 1, 2, MT.Diamond , U4);
|
|
302
|
+ OM.data(MD.GoG, "item.GrimoireOfGaia.Shard" , 1, 3, MT.Emerald , U4);
|
|
303
|
+ OM.data(MD.GoG, "item.GrimoireOfGaia.Shard" , 1, 4, MT.NetherStar , U4);
|
|
304
|
+ OM.data(MD.GoG, "item.GrimoireOfGaia.Shard" , 1, 5, MT.EnderPearl , U4);
|
|
305
|
+ OM.data(MD.GoG, "item.GrimoireOfGaia.Shard" , 1, 6, MT.Blaze , U8);
|
|
306
|
+ OM.data(MD.GoG, "item.GrimoireOfGaia.Fragment" , 1, 0, MT.Emerald , U8);
|
|
307
|
+ }
|
|
308
|
+
|
|
309
|
+ // Seems like it isn't "better" in all aspects.
|
|
310
|
+ if (MD.BETTER_RECORDS.mLoaded) {
|
|
311
|
+ OM.reg(OD.record, ST.make(MD.BETTER_RECORDS, "urlrecord", 1, 0));
|
|
312
|
+ OM.reg(OD.record, ST.make(MD.BETTER_RECORDS, "urlmultirecord", 1, 0));
|
|
313
|
+ }
|
|
314
|
+ }
|
|
315
|
+
|
|
316
|
+ @Override
|
|
317
|
+ public void onModPostInit2(FMLPostInitializationEvent aEvent) {
|
|
318
|
+ OUT.println(getModNameForLog() + ": Checking IC2 Recipe Lists.");
|
|
319
|
+ if (DISABLE_ALL_IC2_COMPRESSOR_RECIPES ) ic2.api.recipe.Recipes.compressor.getRecipes().clear();
|
|
320
|
+ if (DISABLE_ALL_IC2_EXTRACTOR_RECIPES ) ic2.api.recipe.Recipes.extractor .getRecipes().clear();
|
|
321
|
+ if (DISABLE_ALL_IC2_MACERATOR_RECIPES ) ic2.api.recipe.Recipes.macerator .getRecipes().clear();
|
|
322
|
+ if (DISABLE_ALL_IC2_OREWASHER_RECIPES ) ic2.api.recipe.Recipes.oreWashing.getRecipes().clear();
|
|
323
|
+ if (DISABLE_ALL_IC2_CENTRIFUGE_RECIPES ) ic2.api.recipe.Recipes.centrifuge.getRecipes().clear();
|
|
324
|
+
|
|
325
|
+ OUT.println(getModNameForLog() + ": Registering things that are considered Flowers by Bumblebees.");
|
|
326
|
+ if (MD.BoP.mLoaded) {
|
|
327
|
+ BlocksGT.FLOWERS.add(ST.block(MD.BoP, "flowers"));
|
|
328
|
+ BlocksGT.FLOWERS.add(ST.block(MD.BoP, "flowers2"));
|
|
329
|
+ }
|
|
330
|
+ if (MD.EBXL.mLoaded) {
|
|
331
|
+ BlocksGT.FLOWERS.add(ST.block(MD.EBXL, "flower1"));
|
|
332
|
+ BlocksGT.FLOWERS.add(ST.block(MD.EBXL, "flower2"));
|
|
333
|
+ BlocksGT.FLOWERS.add(ST.block(MD.EBXL, "flower3"));
|
|
334
|
+ }
|
|
335
|
+ if (MD.TCFM.mLoaded) {
|
|
336
|
+ BlocksGT.FLOWERS.add(ST.block(MD.TCFM, "InkFlower"));
|
|
337
|
+ BlocksGT.FLOWERS.add(ST.block(MD.TCFM, "UmbralBush"));
|
|
338
|
+ }
|
|
339
|
+ if (MD.BP.mLoaded) {
|
|
340
|
+ BlocksGT.FLOWERS.add(ST.block(MD.BP, "indigo_flower"));
|
|
341
|
+ }
|
|
342
|
+ if (MD.ARS.mLoaded) {
|
|
343
|
+ BlocksGT.FLOWERS.add(ST.block(MD.ARS, "blueOrchid"));
|
|
344
|
+ }
|
|
345
|
+
|
|
346
|
+ OUT.println(getModNameForLog() + ": Registering other Mods Enchantments for Materials");
|
|
347
|
+ for (Enchantment tEnchant : Enchantment.enchantmentsList) if (tEnchant != null) {
|
|
348
|
+ if ("enchantment.Magnetization".equalsIgnoreCase(tEnchant.getName())) {
|
|
349
|
+ for (OreDictMaterial tMaterial : MT.ALL_MATERIALS_REGISTERED_HERE) {
|
|
350
|
+ if (tMaterial == MT.NeodymiumMagnetic) {
|
|
351
|
+ tMaterial.addEnchantmentForTools(tEnchant, 3).addEnchantmentForArmors(tEnchant, 3);
|
|
352
|
+ } else if (tMaterial == MT.MeteoricSteel || tMaterial == MT.Meteorite) {
|
|
353
|
+ tMaterial.addEnchantmentForTools(tEnchant, 2).addEnchantmentForArmors(tEnchant, 2);
|
|
354
|
+ } else if (tMaterial.contains(TD.Properties.MAGNETIC_ACTIVE)) {
|
|
355
|
+ tMaterial.addEnchantmentForTools(tEnchant, 1).addEnchantmentForArmors(tEnchant, 1);
|
|
356
|
+ }
|
|
357
|
+ }
|
|
358
|
+ }
|
|
359
|
+ if ("enchantment.Cold Touch".equalsIgnoreCase(tEnchant.getName())) {
|
|
360
|
+ MT.Ice .addEnchantmentForTools(tEnchant, 1);
|
|
361
|
+ MT.Snow .addEnchantmentForTools(tEnchant, 1);
|
|
362
|
+ MT.FrozenIron .addEnchantmentForTools(tEnchant, 2);
|
|
363
|
+ MT.Blizz .addEnchantmentForTools(tEnchant, 3);
|
|
364
|
+ MT.Frezarite .addEnchantmentForTools(tEnchant, 4);
|
|
365
|
+ MT.InfusedWater .addEnchantmentForTools(tEnchant, 4);
|
|
366
|
+ MT.Cryotheum .addEnchantmentForTools(tEnchant, 5);
|
|
367
|
+ }
|
|
368
|
+ if ("enchantment.frost_walker".equalsIgnoreCase(tEnchant.getName())) {
|
|
369
|
+ MT.Ice .addEnchantmentForArmors(tEnchant, 1);
|
|
370
|
+ MT.Snow .addEnchantmentForArmors(tEnchant, 1);
|
|
371
|
+ MT.FrozenIron .addEnchantmentForArmors(tEnchant, 1);
|
|
372
|
+ MT.Blizz .addEnchantmentForArmors(tEnchant, 1);
|
|
373
|
+ MT.Frezarite .addEnchantmentForArmors(tEnchant, 1);
|
|
374
|
+ MT.InfusedWater .addEnchantmentForArmors(tEnchant, 1);
|
|
375
|
+ MT.Cryotheum .addEnchantmentForArmors(tEnchant, 1);
|
|
376
|
+ }
|
|
377
|
+ if ("enchantment.railcraft.crowbar.implosion".equalsIgnoreCase(tEnchant.getName())) {
|
|
378
|
+ for (OreDictMaterial tMat : ANY.Emerald.mToThis) tMat.addEnchantmentForTools(tEnchant, 5);
|
|
379
|
+ for (OreDictMaterial tMat : ANY.Sapphire.mToThis) tMat.addEnchantmentForTools(tEnchant, 3);
|
|
380
|
+ MT.Spinel .addEnchantmentForTools(tEnchant, 3);
|
|
381
|
+ MT.BalasRuby .addEnchantmentForTools(tEnchant, 3);
|
|
382
|
+ MT.Almandine .addEnchantmentForTools(tEnchant, 2);
|
|
383
|
+ MT.Grossular .addEnchantmentForTools(tEnchant, 2);
|
|
384
|
+ MT.Pyrope .addEnchantmentForTools(tEnchant, 2);
|
|
385
|
+ MT.Spessartine .addEnchantmentForTools(tEnchant, 2);
|
|
386
|
+ MT.Andradite .addEnchantmentForTools(tEnchant, 2);
|
|
387
|
+ MT.Uvarovite .addEnchantmentForTools(tEnchant, 2);
|
|
388
|
+ MT.Topaz .addEnchantmentForTools(tEnchant, 5);
|
|
389
|
+ MT.BlueTopaz .addEnchantmentForTools(tEnchant, 5);
|
|
390
|
+ MT.Tanzanite .addEnchantmentForTools(tEnchant, 4);
|
|
391
|
+ MT.Alexandrite .addEnchantmentForTools(tEnchant, 5);
|
|
392
|
+ MT.Opal .addEnchantmentForTools(tEnchant, 4);
|
|
393
|
+ MT.Jasper .addEnchantmentForTools(tEnchant, 2);
|
|
394
|
+ MT.Olivine .addEnchantmentForTools(tEnchant, 2);
|
|
395
|
+ MT.Amethyst .addEnchantmentForTools(tEnchant, 3);
|
|
396
|
+ MT.Dioptase .addEnchantmentForTools(tEnchant, 3);
|
|
397
|
+ MT.Jade .addEnchantmentForTools(tEnchant, 7);
|
|
398
|
+ MT.Craponite .addEnchantmentForTools(tEnchant, 1);
|
|
399
|
+ MT.EnderAmethyst .addEnchantmentForTools(tEnchant, 5);
|
|
400
|
+ }
|
|
401
|
+ }
|
|
402
|
+
|
|
403
|
+ OUT.println(getModNameForLog() + ": Doing Books for Shelves.");
|
|
404
|
+ new LoaderBookList().run();
|
|
405
|
+
|
|
406
|
+ OUT.println(getModNameForLog() + ": Fixing Chemical Formula Tooltips of certain Elements");
|
|
407
|
+ /** Diatomic Elements get a Subscript 2 appended to their ToolTip after PostInit. That way the ToolTip Calculation works properly until PostInit happens. */
|
|
408
|
+ for (OreDictMaterial tMaterial : OreDictMaterial.MATERIAL_MAP.values()) if (tMaterial.contains(TD.Atomic.DIATOMIC_NONMETAL)) tMaterial.mTooltipChemical += "\u2082";
|
|
409
|
+
|
|
410
|
+ MT.P.mTooltipChemical += "\u2084";
|
|
411
|
+ MT.S.mTooltipChemical += "\u2088";
|
|
412
|
+ MT.Se.mTooltipChemical += "\u2088";
|
|
413
|
+ }
|
|
414
|
+
|
|
415
|
+ @Override
|
|
416
|
+ public void onModServerStarting2(FMLServerStartingEvent aEvent) {
|
|
417
|
+ if (DISABLE_ALL_IC2_COMPRESSOR_RECIPES ) ic2.api.recipe.Recipes.compressor.getRecipes().clear();
|
|
418
|
+ if (DISABLE_ALL_IC2_EXTRACTOR_RECIPES ) ic2.api.recipe.Recipes.extractor .getRecipes().clear();
|
|
419
|
+ if (DISABLE_ALL_IC2_MACERATOR_RECIPES ) ic2.api.recipe.Recipes.macerator .getRecipes().clear();
|
|
420
|
+ if (DISABLE_ALL_IC2_OREWASHER_RECIPES ) ic2.api.recipe.Recipes.oreWashing.getRecipes().clear();
|
|
421
|
+ if (DISABLE_ALL_IC2_CENTRIFUGE_RECIPES ) ic2.api.recipe.Recipes.centrifuge.getRecipes().clear();
|
|
422
|
+ }
|
|
423
|
+
|
|
424
|
+ @Override public void onModServerStarted2(FMLServerStartedEvent aEvent) {/**/}
|
|
425
|
+ @Override public void onModServerStopping2(FMLServerStoppingEvent aEvent) {/**/}
|
|
426
|
+ @Override public void onModServerStopped2(FMLServerStoppedEvent aEvent) {/**/}
|
427
|
427
|
}
|