Added Execution Indicator
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package net.fretux.knockedback.client;
|
||||
|
||||
public class ClientExecutionState {
|
||||
private static int timeLeft = 0;
|
||||
|
||||
public static void setTimeLeft(int ticks) {
|
||||
timeLeft = ticks;
|
||||
}
|
||||
|
||||
public static int getTimeLeft() {
|
||||
return timeLeft;
|
||||
}
|
||||
|
||||
public static boolean isExecuting() {
|
||||
return timeLeft > 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user