2015-04-20 21:53:16 +02:00
|
|
|
package techreborn.init;
|
|
|
|
|
2015-04-28 22:24:50 +02:00
|
|
|
import techreborn.partSystem.IPartProvider;
|
2015-04-20 22:02:25 +02:00
|
|
|
import techreborn.partSystem.ModPartRegistry;
|
|
|
|
import techreborn.partSystem.parts.CablePart;
|
2015-04-20 21:53:16 +02:00
|
|
|
|
|
|
|
public class ModParts {
|
|
|
|
|
2015-04-24 15:20:09 +02:00
|
|
|
public static void init()
|
|
|
|
{
|
2015-05-03 15:46:17 +02:00
|
|
|
for (int i = 0; i < 13; i++) {
|
2015-04-24 22:22:09 +02:00
|
|
|
ModPartRegistry.registerPart(new CablePart(i));
|
|
|
|
}
|
2015-04-24 15:20:09 +02:00
|
|
|
ModPartRegistry.addProvider(
|
|
|
|
"techreborn.partSystem.QLib.QModPartFactory", "qmunitylib");
|
|
|
|
ModPartRegistry.addProvider("techreborn.partSystem.fmp.FMPFactory",
|
|
|
|
"ForgeMultipart");
|
2015-04-20 21:53:16 +02:00
|
|
|
ModPartRegistry.addAllPartsToSystems();
|
2015-04-28 22:24:50 +02:00
|
|
|
for(IPartProvider provider : ModPartRegistry.providers){
|
|
|
|
if(provider.modID().equals("qmunitylib")){
|
|
|
|
ModPartRegistry.masterProvider = provider;
|
|
|
|
}
|
|
|
|
}
|
2015-04-20 21:53:16 +02:00
|
|
|
}
|
|
|
|
}
|