Advertisement
Guest User

mod_DetectingTurtles.java

a guest
Sep 8th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. import dan200.turtle.api.TurtleAPI;
  2. import net.minecraft.src.ModLoader;
  3. import net.minecraft.src.forge.NetworkMod;
  4.  
  5.  
  6. public class mod_DetectingTurtles extends NetworkMod{
  7.  
  8.     @Override
  9.     public String getVersion() {
  10.         // TODO Auto-generated method stub
  11.         return "1.2";
  12.     }
  13.  
  14.     @Override
  15.     public void load() {
  16.         // TODO Auto-generated method stub
  17.        
  18.         ModLoader.setInGameHook(this, true, true);
  19.         TurtleDetecting tDetecting = new TurtleDetecting();
  20.         System.out.println(tDetecting);
  21.        
  22.         try {
  23.             TurtleAPI.registerUpgrade(tDetecting);
  24.         } catch (Exception e) {
  25.             System.out.println("Failed to register Upgrade!");
  26.         }
  27.        
  28.         System.out.println("Successfully registered the Upgrade!");
  29.        
  30.     }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement