Package adris.altoclef
Class AltoClef
java.lang.Object
adris.altoclef.AltoClef
- All Implemented Interfaces:
net.fabricmc.api.ModInitializer
Central access point for AltoClef
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancel currently running user taskControls bot behaviours, like whether to temporarily "protect" certain blocks or itemsTracks blocks and their positionsButler controller.Tracks of whether a chunk is loaded/visible or notbaritone.Baritone
Baritone access (could just be static honestly)baritone.api.Settings
Baritone settings access (could just be static honestly)static CommandExecutor
Executes commands (ex.net.minecraft.client.network.ClientPlayerInteractionManager
Minecraft client interaction controller access (could just be static honestly)Extra controls not present in ClientPlayerInteractionManager.Tracks loaded entitiesbaritone.altoclef.AltoClefSettings
Baritone settings special to AltoClef (could just be static honestly)Takes control away to eat foodManual control over input actions (ex.Tracks items in your inventory and in storage containers.Sends chat messages (avoids auto-kicking)Tracks random block things, like the last nether portal we usedTakes control away to perform bucket savesTakes control away to defend against mobsAltoClef Settingsnet.minecraft.client.network.ClientPlayerEntity
Minecraft player client access (could just be static honestly)Does Inventory/container slot actionsRuns the highest priority task chain (task chains run the task tree)The user task chain (runs your command.net.minecraft.client.world.ClientWorld
getWorld()
Minecraft world access (could just be static honestly)static boolean
inGame()
void
void
log
(String message, MessagePriority priority) Logs to the console and also messages any player using the bot as a butler.void
logWarning
(String message) void
logWarning
(String message, MessagePriority priority) Logs a warning to the console and also alerts any player using the bot as a butler.void
void
void
runUserTask
(Task task) Run a user taskvoid
runUserTask
(Task task, Runnable onFinish) Run a user taskstatic void
subscribeToPostInit
(Consumer<AltoClef> onPostInit) Use this to access AltoClef as an external library.
-
Constructor Details
-
AltoClef
public AltoClef()
-
-
Method Details
-
inGame
public static boolean inGame() -
onInitialize
public void onInitialize()- Specified by:
onInitialize
in interfacenet.fabricmc.api.ModInitializer
-
onInitializeLoad
public void onInitializeLoad() -
getCommandExecutor
Executes commands (ex. `@get`/`@gamer`) -
getTaskRunner
Runs the highest priority task chain (task chains run the task tree) -
getUserTaskChain
The user task chain (runs your command. Ex. Get Diamonds, Beat the Game) -
getBehaviour
Controls bot behaviours, like whether to temporarily "protect" certain blocks or items -
getItemStorage
Tracks items in your inventory and in storage containers. -
getEntityTracker
Tracks loaded entities -
getBlockTracker
Tracks blocks and their positions -
getChunkTracker
Tracks of whether a chunk is loaded/visible or not -
getMiscBlockTracker
Tracks random block things, like the last nether portal we used -
getClientBaritone
public baritone.Baritone getClientBaritone()Baritone access (could just be static honestly) -
getClientBaritoneSettings
public baritone.api.Settings getClientBaritoneSettings()Baritone settings access (could just be static honestly) -
getExtraBaritoneSettings
public baritone.altoclef.AltoClefSettings getExtraBaritoneSettings()Baritone settings special to AltoClef (could just be static honestly) -
getModSettings
AltoClef Settings -
getButler
Butler controller. Keeps track of users and lets you receive user messages -
getMessageSender
Sends chat messages (avoids auto-kicking) -
getSlotHandler
Does Inventory/container slot actions -
getPlayer
public net.minecraft.client.network.ClientPlayerEntity getPlayer()Minecraft player client access (could just be static honestly) -
getWorld
public net.minecraft.client.world.ClientWorld getWorld()Minecraft world access (could just be static honestly) -
getController
public net.minecraft.client.network.ClientPlayerInteractionManager getController()Minecraft client interaction controller access (could just be static honestly) -
getControllerExtras
Extra controls not present in ClientPlayerInteractionManager. This REALLY should be made static or combined with something else. -
getInputControls
Manual control over input actions (ex. jumping, attacking) -
runUserTask
Run a user task -
runUserTask
Run a user task -
cancelUserTask
public void cancelUserTask()Cancel currently running user task -
getFoodChain
Takes control away to eat food -
getMobDefenseChain
Takes control away to defend against mobs -
getMLGBucketChain
Takes control away to perform bucket saves -
log
-
log
Logs to the console and also messages any player using the bot as a butler. -
logWarning
-
logWarning
Logs a warning to the console and also alerts any player using the bot as a butler. -
subscribeToPostInit
Use this to access AltoClef as an external library.
-