Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gamebuster19901.hello.proxy;
- import org.apache.logging.log4j.Level;
- import com.gamebuster19901.hello.Main;
- import net.minecraftforge.fml.common.event.FMLInitializationEvent;
- import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
- import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
- public class ClientProxy extends Proxy{
- public void preInit(FMLPreInitializationEvent e){
- super.preInit(e);
- Main.LOGGER.log(Level.INFO, "Loading native libraries...");
- System.loadLibrary("hello");
- Main.LOGGER.log(Level.INFO, "Loaded native libraries!");
- for(int i = 0; i < 10; i++) {
- Main.LOGGER.log(Level.ERROR, helloWorld());
- }
- }
- public void init(FMLInitializationEvent e){
- super.init(e);
- }
- public void postInit(FMLPostInitializationEvent e){
- super.postInit(e);
- }
- public native String helloWorld();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement