2211
This commit is contained in:
parent
abb9b5102f
commit
92ca6548c6
49 changed files with 405 additions and 332 deletions
|
@ -2,9 +2,7 @@ package techreborn.init;
|
|||
|
||||
import net.minecraftforge.fml.common.Loader;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import techreborn.partSystem.IPartProvider;
|
||||
import techreborn.partSystem.ModPartRegistry;
|
||||
import techreborn.partSystem.parts.CablePart;
|
||||
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
|
@ -12,22 +10,22 @@ public class ModParts {
|
|||
|
||||
public static HashMap<Integer, ItemStack> stackCable = new HashMap<Integer, ItemStack>();
|
||||
|
||||
public static void init() {
|
||||
if (Loader.isModLoaded("IC2")) {
|
||||
for (int i = 0; i < 11; i++) {
|
||||
CablePart part = new CablePart();
|
||||
part.setType(i);
|
||||
ModPartRegistry.registerPart(part);
|
||||
}
|
||||
}
|
||||
ModPartRegistry.addProvider("techreborn.partSystem.fmp.FMPFactory",
|
||||
"ForgeMultipart");
|
||||
ModPartRegistry.addProvider("techreborn.partSystem.QLib.QModPartFactory", "qmunitylib");
|
||||
ModPartRegistry.addAllPartsToSystems();
|
||||
for (IPartProvider provider : ModPartRegistry.providers) {
|
||||
if (provider.modID().equals("ForgeMultipart")) {
|
||||
ModPartRegistry.masterProvider = provider;
|
||||
}
|
||||
}
|
||||
public static void init() { //TODO 1.8
|
||||
// if (Loader.isModLoaded("IC2")) {
|
||||
// for (int i = 0; i < 11; i++) {
|
||||
// CablePart part = new CablePart();
|
||||
// part.setType(i);
|
||||
// ModPartRegistry.registerPart(part);
|
||||
// }
|
||||
// }
|
||||
// ModPartRegistry.addProvider("techreborn.partSystem.fmp.FMPFactory",
|
||||
// "ForgeMultipart");
|
||||
// ModPartRegistry.addProvider("techreborn.partSystem.QLib.QModPartFactory", "qmunitylib");
|
||||
// ModPartRegistry.addAllPartsToSystems();
|
||||
// for (IPartProvider provider : ModPartRegistry.providers) {
|
||||
// if (provider.modID().equals("ForgeMultipart")) {
|
||||
// ModPartRegistry.masterProvider = provider;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue