baritone/src/api/java/baritone/api/IBaritone.java

147 lines
3.8 KiB
Java
Raw Permalink Normal View History

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;
import baritone.api.pathing.calc.IPathingControlManager;
import baritone.api.process.*;
import baritone.api.selection.ISelectionManager;
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();
/**
* @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
/**
* @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
*/
IPathingControlManager getPathingControlManager();
2019-02-23 20:32:10 +00:00
/**
* @return The {@link IInputOverrideHandler} instance
* @see IInputOverrideHandler
*/
IInputOverrideHandler getInputOverrideHandler();
2019-02-23 20:32:10 +00:00
/**
* @return The {@link IPlayerContext} instance
* @see IPlayerContext
*/
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
/**
* @return The {@link ISelectionManager} instance
* @see ISelectionManager
*/
ISelectionManager getSelectionManager();
/**
* @return The {@link ICommandManager} instance
* @see ICommandManager
*/
ICommandManager getCommandManager();
/**
* Open click
*/
2019-04-18 01:10:47 +00:00
void openClick();
2018-11-04 05:11:52 +00:00
}