Files
baritone/src/main/java/baritone/BaritoneProvider.java

76 lines
2.1 KiB
Java
Raw Normal View History

/*
* This file is part of Baritone.
*
* Baritone is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Baritone is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone;
import baritone.api.IBaritoneProvider;
import baritone.api.behavior.*;
import baritone.api.cache.IWorldProvider;
2018-10-06 20:30:09 -05:00
import baritone.api.cache.IWorldScanner;
2018-10-06 20:16:38 -05:00
import baritone.api.event.listener.IGameEventListener;
import baritone.cache.WorldProvider;
2018-10-06 20:30:09 -05:00
import baritone.cache.WorldScanner;
/**
2018-10-27 18:45:17 -07:00
* todo fix this cancer
*
* @author Brady
* @since 9/29/2018
*/
public final class BaritoneProvider implements IBaritoneProvider {
@Override
public IFollowBehavior getFollowBehavior() {
2018-10-27 18:45:17 -07:00
return Baritone.INSTANCE.getFollowBehavior();
}
@Override
public ILookBehavior getLookBehavior() {
2018-10-27 18:45:17 -07:00
return Baritone.INSTANCE.getLookBehavior();
}
@Override
public IMemoryBehavior getMemoryBehavior() {
2018-10-27 18:45:17 -07:00
return Baritone.INSTANCE.getMemoryBehavior();
}
@Override
public IMineBehavior getMineBehavior() {
2018-10-27 18:45:17 -07:00
return Baritone.INSTANCE.getMineBehavior();
}
@Override
public IPathingBehavior getPathingBehavior() {
2018-10-27 18:45:17 -07:00
return Baritone.INSTANCE.getPathingBehavior();
}
@Override
public IWorldProvider getWorldProvider() {
return WorldProvider.INSTANCE;
}
2018-10-06 20:16:38 -05:00
2018-10-06 20:30:09 -05:00
@Override
public IWorldScanner getWorldScanner() {
return WorldScanner.INSTANCE;
}
2018-10-06 20:16:38 -05:00
@Override
public void registerEventListener(IGameEventListener listener) {
Baritone.INSTANCE.registerEventListener(listener);
}
}