remove Baritone.INSTANCE
This commit is contained in:
parent
f6891feb64
commit
c74ccaafbf
@ -27,7 +27,6 @@ import baritone.behavior.LookBehavior;
|
|||||||
import baritone.behavior.MemoryBehavior;
|
import baritone.behavior.MemoryBehavior;
|
||||||
import baritone.behavior.PathingBehavior;
|
import baritone.behavior.PathingBehavior;
|
||||||
import baritone.cache.WorldProvider;
|
import baritone.cache.WorldProvider;
|
||||||
import baritone.cache.WorldScanner;
|
|
||||||
import baritone.event.GameEventHandler;
|
import baritone.event.GameEventHandler;
|
||||||
import baritone.process.CustomGoalProcess;
|
import baritone.process.CustomGoalProcess;
|
||||||
import baritone.process.FollowProcess;
|
import baritone.process.FollowProcess;
|
||||||
@ -54,12 +53,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
* @author Brady
|
* @author Brady
|
||||||
* @since 7/31/2018
|
* @since 7/31/2018
|
||||||
*/
|
*/
|
||||||
public enum Baritone implements IBaritone {
|
public class Baritone implements IBaritone {
|
||||||
|
|
||||||
/**
|
|
||||||
* Singleton instance of this class
|
|
||||||
*/
|
|
||||||
INSTANCE;
|
|
||||||
|
|
||||||
private static ThreadPoolExecutor threadPool;
|
private static ThreadPoolExecutor threadPool;
|
||||||
private static File dir;
|
private static File dir;
|
||||||
|
@ -32,19 +32,22 @@ import java.util.Set;
|
|||||||
*/
|
*/
|
||||||
public final class BaritoneProvider implements IBaritoneProvider {
|
public final class BaritoneProvider implements IBaritoneProvider {
|
||||||
|
|
||||||
|
private final Baritone primary = new Baritone();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IBaritone getPrimaryBaritone() {
|
public IBaritone getPrimaryBaritone() {
|
||||||
return Baritone.INSTANCE;
|
return primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<IBaritone> getAllBaritones() {
|
public Set<IBaritone> getAllBaritones() {
|
||||||
return Collections.singleton(Baritone.INSTANCE);
|
return Collections.singleton(primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IBaritone getBaritoneForPlayer(EntityPlayerSP player) {
|
public IBaritone getBaritoneForPlayer(EntityPlayerSP player) {
|
||||||
return Baritone.INSTANCE;
|
// TODO implement on bot-system branch
|
||||||
|
return primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user