Advertisement
ZornTaov

TimeMod

Mar 4th, 2011
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 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. import java.io.PrintStream;
  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.     world = M.theWorld;
  16.     if(world == null)
  17.     {
  18.         System.out.println("world Null");
  19.     }
  20.     else {
  21.     long l1 = world.getWorldTime() + 1L;
  22.     System.out.println((new StringBuilder("Time: ")).append(l1).toString());
  23.     if(l1 > 6000L)
  24.         {
  25.             l1 = 0L;
  26.         }
  27.     world.setWorldTime(l1);
  28.         }
  29.     }
  30.     public String Version()
  31.     {
  32.         return "1.3_01";
  33.     }
  34.     protected World world;
  35.     static
  36.     {
  37.        
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement