Advertisement
Gamebuster

Untitled

Nov 23rd, 2018
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.89 KB | None | 0 0
  1. package com.gamebuster19901.hello.proxy;
  2.  
  3. import org.apache.logging.log4j.Level;
  4.  
  5. import com.gamebuster19901.hello.Main;
  6.  
  7. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  8. import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
  9. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  10.  
  11. public class ClientProxy extends Proxy{
  12.  
  13.     public void preInit(FMLPreInitializationEvent e){
  14.         super.preInit(e);
  15.         Main.LOGGER.log(Level.INFO, "Loading native libraries...");
  16.         System.loadLibrary("hello");
  17.         Main.LOGGER.log(Level.INFO, "Loaded native libraries!");
  18.        
  19.         for(int i = 0; i < 10; i++) {
  20.             Main.LOGGER.log(Level.ERROR, helloWorld());
  21.         }
  22.     }
  23.    
  24.    
  25.     public void init(FMLInitializationEvent e){
  26.         super.init(e);
  27.     }
  28.    
  29.     public void postInit(FMLPostInitializationEvent e){
  30.         super.postInit(e);
  31.     }
  32.    
  33.     public native String helloWorld();
  34.    
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement