Class AltoClef

java.lang.Object
adris.altoclef.AltoClef
All Implemented Interfaces:
net.fabricmc.api.ModInitializer

public class AltoClef extends Object implements net.fabricmc.api.ModInitializer
Central access point for AltoClef
  • Constructor Details

    • AltoClef

      public AltoClef()
  • Method Details

    • inGame

      public static boolean inGame()
    • onInitialize

      public void onInitialize()
      Specified by:
      onInitialize in interface net.fabricmc.api.ModInitializer
    • onInitializeLoad

      public void onInitializeLoad()
    • getCommandExecutor

      public static CommandExecutor getCommandExecutor()
      Executes commands (ex. `@get`/`@gamer`)
    • getTaskRunner

      public TaskRunner getTaskRunner()
      Runs the highest priority task chain (task chains run the task tree)
    • getUserTaskChain

      public UserTaskChain getUserTaskChain()
      The user task chain (runs your command. Ex. Get Diamonds, Beat the Game)
    • getBehaviour

      public BotBehaviour getBehaviour()
      Controls bot behaviours, like whether to temporarily "protect" certain blocks or items
    • getItemStorage

      public ItemStorageTracker getItemStorage()
      Tracks items in your inventory and in storage containers.
    • getEntityTracker

      public EntityTracker getEntityTracker()
      Tracks loaded entities
    • getBlockTracker

      public BlockTracker getBlockTracker()
      Tracks blocks and their positions
    • getChunkTracker

      public SimpleChunkTracker getChunkTracker()
      Tracks of whether a chunk is loaded/visible or not
    • getMiscBlockTracker

      public MiscBlockTracker 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

      public Settings getModSettings()
      AltoClef Settings
    • getButler

      public Butler getButler()
      Butler controller. Keeps track of users and lets you receive user messages
    • getMessageSender

      public MessageSender getMessageSender()
      Sends chat messages (avoids auto-kicking)
    • getSlotHandler

      public SlotHandler 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

      public PlayerExtraController getControllerExtras()
      Extra controls not present in ClientPlayerInteractionManager. This REALLY should be made static or combined with something else.
    • getInputControls

      public InputControls getInputControls()
      Manual control over input actions (ex. jumping, attacking)
    • runUserTask

      public void runUserTask(Task task)
      Run a user task
    • runUserTask

      public void runUserTask(Task task, Runnable onFinish)
      Run a user task
    • cancelUserTask

      public void cancelUserTask()
      Cancel currently running user task
    • getFoodChain

      public FoodChain getFoodChain()
      Takes control away to eat food
    • getMobDefenseChain

      public MobDefenseChain getMobDefenseChain()
      Takes control away to defend against mobs
    • getMLGBucketChain

      public MLGBucketFallChain getMLGBucketChain()
      Takes control away to perform bucket saves
    • log

      public void log(String message)
    • log

      public void log(String message, MessagePriority priority)
      Logs to the console and also messages any player using the bot as a butler.
    • logWarning

      public void logWarning(String message)
    • logWarning

      public void logWarning(String message, MessagePriority priority)
      Logs a warning to the console and also alerts any player using the bot as a butler.
    • subscribeToPostInit

      public static void subscribeToPostInit(Consumer<AltoClef> onPostInit)
      Use this to access AltoClef as an external library.