baritone/util/ManagerTick.java

24 lines
546 B
Java
Raw Normal View History

2018-08-01 11:34:35 -04:00
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package baritone.util;
/**
*
* @author avecowa
*/
public abstract class ManagerTick extends Manager {
public static boolean tickPath = false;
@Override
protected final void onTick() {
if (tickPath) {
if (onTick0()) {
tickPath = false;
}
}
}
protected abstract boolean onTick0();
}