daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package mnm.mods.bigenough;
  2.  
  3. import net.minecraftforge.common.MinecraftForge;
  4. import net.minecraftforge.fml.common.Mod;
  5. import net.minecraftforge.fml.common.SidedProxy;
  6. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  7. import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
  8. import net.minecraftforge.fml.common.gameevent.TickEvent;
  9. import org.apache.logging.log4j.LogManager;
  10. import org.apache.logging.log4j.Logger;
  11.  
  12. @Mod(
  13.         modid = BigEnough.MOD_ID,
  14.         name = BigEnough.MOD_NAME,
  15.         version = BigEnough.VERSION
  16. )
  17. public class BigEnough {
  18.  
  19.     public static final String MOD_ID = "bigenough";
  20.     public static final String MOD_NAME = "BigEnough";
  21.     public static final String VERSION = "1.0-SNAPSHOT";
  22.  
  23.     public static final Logger logger = LogManager.getLogger("Aaahhh");
  24.  
  25.     @SidedProxy(serverSide = "mnm.mods.bigenough.CommonProxy", clientSide = "mnm.mods.bigenough.client.ClientProxy")
  26.     public static CommonProxy proxy;
  27.  
  28.     private int timeToAhhh = 4000;
  29.     private int screamLength = 0;
  30.  
  31.     @Mod.EventHandler
  32.     public void init(FMLInitializationEvent event) {
  33.         MinecraftForge.EVENT_BUS.register(this);
  34.  
  35.         proxy.registerClientListener();
  36.  
  37.         logger.info("Aaaaaaaahhhhhhhh");
  38.     }
  39.  
  40.     @SubscribeEvent
  41.     public void timeChange(TickEvent.WorldTickEvent event) {
  42.         if (event.world.getWorldTime() == timeToAhhh) {
  43.             proxy.startScreaming();
  44.         }
  45.     }
  46.  
  47. }
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