mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +00:00
Crystallinity
This commit is contained in:
1 parent
3be23a69a0
commit
acb850352c
14 files changed
+302
-94
No files matched your search
@@ -0,0 +1,41 @@
|
||||
package mods.tinker.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