SHARE
TWEET

Untitled

a guest Aug 1st, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.rbs.slurpiesdongles;
  2.  
  3. import com.rbs.slurpiesdongles.events.EventPigDrops;
  4. import com.rbs.slurpiesdongles.events.FuelHandler;
  5. import com.rbs.slurpiesdongles.events.SeedsDropFromGrass;
  6. import com.rbs.slurpiesdongles.init.*;
  7. import com.rbs.slurpiesdongles.proxy.CommonProxy;
  8. import com.rbs.slurpiesdongles.world.WorldGen;
  9. import com.sun.org.glassfish.gmbal.IncludeSubclass;
  10. import net.minecraft.block.Block;
  11. import net.minecraft.item.Item;
  12. import net.minecraftforge.client.event.ModelRegistryEvent;
  13. import net.minecraftforge.common.MinecraftForge;
  14. import net.minecraftforge.common.config.Configuration;
  15. import net.minecraftforge.event.RegistryEvent;
  16. import net.minecraftforge.fml.client.event.ConfigChangedEvent;
  17. import net.minecraftforge.fml.common.FMLCommonHandler;
  18. import net.minecraftforge.fml.common.Mod;
  19. import net.minecraftforge.fml.common.SidedProxy;
  20. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  21. import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
  22. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  23. import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
  24. import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
  25. import net.minecraftforge.fml.common.registry.GameRegistry;
  26.  
  27. import java.io.File;
  28. import java.util.Random;
  29.  
  30. import static com.rbs.slurpiesdongles.init.Configuration.*;
  31.  
  32. /**
  33.  * Created by Consular on 7/19/2017.
  34.  */
  35. @Mod(modid = SlurpiesDongles.modId, name = SlurpiesDongles.name, version = SlurpiesDongles.version)
  36. public class SlurpiesDongles {
  37.  
  38.  
  39.  
  40.     public static Random random = new Random();
  41.     public static final SDTab creativeTab = new SDTab();
  42.  
  43.     public static Configuration Config;
  44.     public static Configuration Armor;
  45.  
  46.         public static final String modId = "slurpiesdongles";
  47.         public static final String name = "Slurpies Dongles";
  48.         public static final String version = "1.0.0";
  49.  
  50.         @SidedProxy(serverSide = "com.rbs.slurpiesdongles.proxy.CommonProxy", clientSide = "com.rbs.slurpiesdongles.proxy.ClientProxy")
  51.         public static CommonProxy proxy;
  52.  
  53.         @Mod.Instance(modId)
  54.     public static SlurpiesDongles instance;
  55.  
  56.         @Mod.EventHandler
  57.     public void preInit(FMLPreInitializationEvent event) {
  58.             MinecraftForge.EVENT_BUS.register(new EventPigDrops());
  59.             MinecraftForge.EVENT_BUS.register(new RegistrationHandler());
  60.             MinecraftForge.EVENT_BUS.register(new FuelHandler());
  61.             MinecraftForge.EVENT_BUS.register(new SmeltingRecipies());
  62.             SeedsDropFromGrass.getSeedDrops();
  63.  
  64.             syncConfig();
  65.             Config = new Configuration(new File("config/SlurpiesDongles/ToolMaterials.cfg"));
  66.             Armor = new Configuration(new File("config/SlurpiesDongles/ArmorMaterials.cfg"));
  67.             //ConfigFile.SyncConfig();
  68.  
  69.         }
  70.  
  71.         @Mod.EventHandler
  72.     public void init(FMLInitializationEvent event) {
  73.             MinecraftForge.EVENT_BUS.register(instance);
  74.             proxy.registerRenders();
  75.             SmeltingRecipies.registerSmeltingRecipes();
  76.             GameRegistry.registerWorldGenerator(new WorldGen(), 0);
  77.             GameRegistry.registerFuelHandler(new FuelHandler());
  78.         }
  79.  
  80.         @Mod.EventHandler
  81.     public void postInit(FMLPostInitializationEvent event) {
  82.  
  83.         }
  84.  
  85.     @Mod.EventHandler
  86.     public void serverLoad(FMLServerStartingEvent event) {
  87.  
  88.     }
  89.     @SubscribeEvent
  90.     public void onConfigChanged (ConfigChangedEvent.OnConfigChangedEvent event) {
  91.         if (event.getModID().equals(SlurpiesDongles.modId)) {
  92.             //ConfigFile.SyncConfig();
  93.             syncConfig();
  94.         }
  95.     }
  96.  
  97. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top