mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 18:55:18 +00:00
28 lines
303 B
Java
28 lines
303 B
Java
package com.volmit.iris.util;
|
|
|
|
public abstract class AR implements Runnable, CancellableTask
|
|
{
|
|
private int id = 0;
|
|
|
|
public AR()
|
|
{
|
|
this(0);
|
|
}
|
|
|
|
public AR(int interval)
|
|
{
|
|
id = J.ar(this, interval);
|
|
}
|
|
|
|
@Override
|
|
public void cancel()
|
|
{
|
|
J.car(id);
|
|
}
|
|
|
|
public int getId()
|
|
{
|
|
return id;
|
|
}
|
|
}
|