Advertisement
Guest User

Classe Principal

a guest
Dec 4th, 2017
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Class principal
  2.  
  3.  
  4. public static boolean zoom;
  5. public static Item ItemZoomer;
  6.  
  7. @Mod.EventHandler
  8. public void preinit(FMLPreInitializationEvent paramFMLPreInitializationEvent)
  9. {
  10. if(paramFMLPreInitializationEvent.getSide().isClient())
  11. {
  12.  
  13. FMLCommonHandler.instance().bus().register(new TickClientHandlerEvent());
  14.  
  15. MinecraftForge.EVENT_BUS.register(new TickClientHandlerEvent());
  16.  
  17. if(!Minecraft.getMinecraft().mcDataDir.getAbsolutePath().contains("AltisCube") && !Minecraft.getMinecraft().mcDataDir.equals(new File(".")))
  18. {
  19. Throwables.propagate(new Exception("Launcher non autorisé"));
  20.  
  21. }
  22. }
  23.  
  24. ItemZoomer = new ItemZoomer().setUnlocalizedName("ItemZoomer").setTextureName("altiscube:jumelle").setCreativeTab(AltiscubeItem).setMaxStackSize(1);
  25. GameRegistry.registerItem(ItemZoomer, "ItemZoomer");
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement