2018-11-04 05:11:52 +00:00
|
|
|
/*
|
|
|
|
* 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.api;
|
|
|
|
|
2018-11-05 22:41:17 +00:00
|
|
|
import baritone.api.behavior.ILookBehavior;
|
|
|
|
import baritone.api.behavior.IPathingBehavior;
|
2018-11-04 05:11:52 +00:00
|
|
|
import baritone.api.cache.IWorldProvider;
|
2021-01-30 04:17:53 +00:00
|
|
|
import baritone.api.command.manager.ICommandManager;
|
2018-11-14 22:29:15 +00:00
|
|
|
import baritone.api.event.listener.IEventBus;
|
2019-01-11 01:57:09 +00:00
|
|
|
import baritone.api.pathing.calc.IPathingControlManager;
|
2019-01-16 04:07:06 +00:00
|
|
|
import baritone.api.process.*;
|
2019-09-02 18:29:48 +00:00
|
|
|
import baritone.api.selection.ISelectionManager;
|
2018-11-13 17:50:29 +00:00
|
|
|
import baritone.api.utils.IInputOverrideHandler;
|
|
|
|
import baritone.api.utils.IPlayerContext;
|
2018-11-04 05:11:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Brady
|
|
|
|
* @since 9/29/2018
|
|
|
|
*/
|
|
|
|
public interface IBaritone {
|
|
|
|
|
2019-02-23 20:32:10 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link IPathingBehavior} instance
|
|
|
|
* @see IPathingBehavior
|
|
|
|
*/
|
|
|
|
IPathingBehavior getPathingBehavior();
|
2018-11-04 05:11:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return The {@link ILookBehavior} instance
|
|
|
|
* @see ILookBehavior
|
|
|
|
*/
|
|
|
|
ILookBehavior getLookBehavior();
|
|
|
|
|
2019-02-23 20:32:10 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link IFollowProcess} instance
|
|
|
|
* @see IFollowProcess
|
|
|
|
*/
|
|
|
|
IFollowProcess getFollowProcess();
|
|
|
|
|
2018-11-04 05:11:52 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link IMineProcess} instance
|
|
|
|
* @see IMineProcess
|
|
|
|
*/
|
|
|
|
IMineProcess getMineProcess();
|
|
|
|
|
2019-01-16 04:07:06 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link IBuilderProcess} instance
|
|
|
|
* @see IBuilderProcess
|
|
|
|
*/
|
|
|
|
IBuilderProcess getBuilderProcess();
|
|
|
|
|
2019-04-18 01:10:47 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link IExploreProcess} instance
|
|
|
|
* @see IExploreProcess
|
|
|
|
*/
|
|
|
|
IExploreProcess getExploreProcess();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return The {@link IFarmProcess} instance
|
|
|
|
* @see IFarmProcess
|
|
|
|
*/
|
|
|
|
IFarmProcess getFarmProcess();
|
|
|
|
|
2018-11-04 05:11:52 +00:00
|
|
|
/**
|
2019-02-23 20:32:10 +00:00
|
|
|
* @return The {@link ICustomGoalProcess} instance
|
|
|
|
* @see ICustomGoalProcess
|
2018-11-04 05:11:52 +00:00
|
|
|
*/
|
2019-02-23 20:32:10 +00:00
|
|
|
ICustomGoalProcess getCustomGoalProcess();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return The {@link IGetToBlockProcess} instance
|
|
|
|
* @see IGetToBlockProcess
|
|
|
|
*/
|
|
|
|
IGetToBlockProcess getGetToBlockProcess();
|
2018-11-04 05:11:52 +00:00
|
|
|
|
2023-07-17 02:56:17 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link IElytraProcess} instance
|
|
|
|
* @see IElytraProcess
|
|
|
|
*/
|
|
|
|
IElytraProcess getElytraProcess();
|
|
|
|
|
2018-11-04 05:11:52 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link IWorldProvider} instance
|
|
|
|
* @see IWorldProvider
|
|
|
|
*/
|
|
|
|
IWorldProvider getWorldProvider();
|
|
|
|
|
2019-02-23 20:32:10 +00:00
|
|
|
/**
|
|
|
|
* Returns the {@link IPathingControlManager} for this {@link IBaritone} instance, which is responsible
|
|
|
|
* for managing the {@link IBaritoneProcess}es which control the {@link IPathingBehavior} state.
|
|
|
|
*
|
|
|
|
* @return The {@link IPathingControlManager} instance
|
|
|
|
* @see IPathingControlManager
|
|
|
|
*/
|
2019-01-11 01:57:09 +00:00
|
|
|
IPathingControlManager getPathingControlManager();
|
|
|
|
|
2019-02-23 20:32:10 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link IInputOverrideHandler} instance
|
|
|
|
* @see IInputOverrideHandler
|
|
|
|
*/
|
2018-11-13 17:50:29 +00:00
|
|
|
IInputOverrideHandler getInputOverrideHandler();
|
|
|
|
|
2019-02-23 20:32:10 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link IPlayerContext} instance
|
|
|
|
* @see IPlayerContext
|
|
|
|
*/
|
2018-11-13 17:50:29 +00:00
|
|
|
IPlayerContext getPlayerContext();
|
|
|
|
|
2019-02-19 22:43:48 +00:00
|
|
|
/**
|
2019-02-23 20:32:10 +00:00
|
|
|
* @return The {@link IEventBus} instance
|
|
|
|
* @see IEventBus
|
2019-02-19 22:43:48 +00:00
|
|
|
*/
|
2019-02-23 20:32:10 +00:00
|
|
|
IEventBus getGameEventHandler();
|
2019-04-18 01:10:47 +00:00
|
|
|
|
2019-09-02 18:29:48 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link ISelectionManager} instance
|
|
|
|
* @see ISelectionManager
|
|
|
|
*/
|
|
|
|
ISelectionManager getSelectionManager();
|
|
|
|
|
2019-09-21 07:40:03 +00:00
|
|
|
/**
|
|
|
|
* @return The {@link ICommandManager} instance
|
|
|
|
* @see ICommandManager
|
|
|
|
*/
|
|
|
|
ICommandManager getCommandManager();
|
|
|
|
|
2019-07-13 06:27:02 +00:00
|
|
|
/**
|
|
|
|
* Open click
|
|
|
|
*/
|
2019-04-18 01:10:47 +00:00
|
|
|
void openClick();
|
2018-11-04 05:11:52 +00:00
|
|
|
}
|