TechReborn/src/main/java/techreborn/parts/TechRebornParts.java

57 lines
1.4 KiB
Java
Raw Normal View History

2016-03-02 17:29:51 +01:00
package techreborn.parts;
2016-03-25 10:47:34 +01:00
import java.util.HashMap;
import javax.annotation.Nullable;
2016-03-02 17:29:51 +01:00
import mcmultipart.multipart.MultipartRegistry;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import techreborn.compat.ICompatModule;
/**
2016-03-07 21:33:08 +01:00
* Created by modmuss50 on 02/03/2016.
2016-03-02 17:29:51 +01:00
*/
2016-03-25 10:47:34 +01:00
public class TechRebornParts implements ICompatModule
{
2016-03-02 17:29:51 +01:00
2016-03-25 10:47:34 +01:00
@Nullable
public static Item cables;
2016-03-02 17:29:51 +01:00
2016-03-25 10:47:34 +01:00
public static HashMap<EnumCableType, Class<? extends CableMultipart>> multipartHashMap = new HashMap<>();
2016-03-05 15:24:31 +01:00
2016-03-25 10:47:34 +01:00
@Override
public void preInit(FMLPreInitializationEvent event)
{
2016-03-02 17:29:51 +01:00
2016-03-25 10:47:34 +01:00
}
2016-03-02 17:29:51 +01:00
2016-03-25 10:47:34 +01:00
@Override
public void init(FMLInitializationEvent event)
{
for (EnumCableType cableType : EnumCableType.values())
{
multipartHashMap.put(cableType, cableType.cableClass);
MultipartRegistry.registerPart(cableType.cableClass, "techreborn:cable." + cableType.name());
}
cables = new ItemCables();
GameRegistry.registerItem(cables, "cables");
}
2016-03-02 17:29:51 +01:00
2016-03-25 10:47:34 +01:00
@Override
public void postInit(FMLPostInitializationEvent event)
{
2016-03-02 17:29:51 +01:00
2016-03-25 10:47:34 +01:00
}
2016-03-02 17:29:51 +01:00
2016-03-25 10:47:34 +01:00
@Override
public void serverStarting(FMLServerStartingEvent event)
{
2016-03-02 17:29:51 +01:00
2016-03-25 10:47:34 +01:00
}
2016-03-02 17:29:51 +01:00
}