pastebin

Paste Search Dynamic
Recent pastes
import net.minecraftforge.comm
  1. package com.digitalsmile.oremod;
  2.  
  3. import net.minecraftforge.common.MinecraftForge;
  4. import net.minecraftforge.eventbus.api.SubscribeEvent;
  5. import net.minecraftforge.fml.common.Mod;
  6. import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
  7. import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
  8.  
  9. import net.minecraftforge.fml.event.server.FMLServerStartingEvent;
  10. import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
  11. import org.apache.logging.log4j.LogManager;
  12. import org.apache.logging.log4j.Logger;
  13.  
  14.  
  15. @Mod(Main.MOD_ID)
  16. public class Main
  17. {
  18.         public static Main instance;
  19.         public static final string MOD_ID = "gemsmod";
  20.     public static final Logger LOGGER = LogManager.getLogger();
  21.  
  22.     public Main()
  23.     {
  24.         instance = this;
  25.         FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
  26.         FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff);
  27.  
  28.         MinecraftForge.EVENT_BUS.register(this);
  29.     }
  30.  
  31.     private void setup(final FMLCommonSetupEvent event)
  32.     {
  33.        
  34.     }
  35.  
  36.     private void doClientStuff(final FMLClientSetupEvent event)
  37.     {
  38.        
  39.     }
  40.  
  41.     @SubscribeEvent
  42.     public void onServerStarting(FMLServerStartingEvent event)
  43.     {
  44.        
  45.     }
  46.  
  47. }
Parsed in 0.023 seconds