SHARE
TWEET

Java Troubles

Kartixx May 25th, 2019 (edited) 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CelestialUtilities.java
  2.  
  3. package kartixx.celestialutilities;
  4.  
  5. import org.apache.logging.log4j.LogManager;
  6. import org.apache.logging.log4j.Logger;
  7.  
  8. import net.minecraftforge.common.MinecraftForge;
  9. import net.minecraftforge.fml.common.Mod;
  10. import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
  11. import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
  12. import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
  13.  
  14. @Mod("celestialutilities")
  15. public class CelestialUtilities
  16. {
  17.     public static CelestialUtilities instance;
  18.     public static final String modid = "celestialutilities";
  19.     private static final Logger logger = LogManager.getLogger(modid);
  20.    
  21.     public CelestialUtilities()
  22.     {
  23.         instance = this;
  24.        
  25.         FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
  26.         FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientRegistries);
  27.        
  28.         MinecraftForge.EVENT_BUS.register(this);
  29.     }
  30.    
  31.     private void setup(final FMLCommonSetupEvent event)
  32.     {
  33.         logger.info("Setup method registered.");
  34.     }
  35.     private void clientRegistries(final FMLClientSetupEvent event)
  36.     {
  37.         logger.info("cleintRegistries method registered.");
  38.     }
  39. }
  40.  
  41. Screenshots & Pictures:
  42. Mod Folder - https://gyazo.com/bbaef51aa217f034bc17d3477dee5b83
  43. Termination Error - https://gyazo.com/540de6e697994ece4a13511ffb9cccb2
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