ZornTaov

Time Mod

Mar 4th, 2011
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. package net.minecraft.src;
  2. // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
  3. // Jad home page: http://www.kpdus.com/jad.html
  4. // Decompiler options: packimports(3) braces deadcode
  5. import net.minecraft.client.Minecraft;
  6.  
  7. public class mod_Time extends BaseMod
  8. {
  9.  
  10.     public mod_Time()
  11.     {
  12.     }
  13.     public void OSDHook(Minecraft M, boolean b)
  14.     {
  15.     long l1 = worldInfo.getWorldTime() + 1L;
  16.     if(l1 > 6000L)
  17.         {
  18.             worldInfo.setWorldTime(0L);
  19.         }
  20.        
  21.     }
  22.     public String Version()
  23.     {
  24.         return "1.3_01 for Modloader v4";
  25.     }
  26.     protected WorldInfo worldInfo;
  27.     static
  28.     {
  29.        
  30.     }
  31. }
Add Comment
Please, Sign In to add comment