mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +00:00
Restructure with build file (Ant)
This commit is contained in:
1 parent
8ce338dd58
commit
087b33feb7
4039 files changed
+219
No files matched your search
@@ -0,0 +1,42 @@
|
||||
package tconstruct.common;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import cpw.mods.fml.common.ITickHandler;
|
||||
import cpw.mods.fml.common.TickType;
|
||||
|
||||
public class TimeTicker implements ITickHandler
|
||||
{
|
||||
public static long time = 0;
|
||||
public static int tickParts = 0;
|
||||
public static int seconds = 0;
|
||||
public static int minutes = 0;
|
||||
|
||||
@Override
|
||||
public void tickStart (EnumSet<TickType> type, Object... tickData)
|
||||
{
|
||||
System.out.println("Tick");
|
||||
time++;
|
||||
tickParts = (int) (time % 20);
|
||||
seconds = (int) (time / 20);
|
||||
minutes = (int) (time / 1200);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tickEnd (EnumSet<TickType> type, Object... tickData)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumSet<TickType> ticks ()
|
||||
{
|
||||
return EnumSet.of(TickType.WORLD);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLabel ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user