Interface SwarmBot

interface SwarmBot {
    _client: Client;
    acceptResourcePack: (() => void);
    activateBlock: ((block, direction?, cursorPos?) => Promise<void>);
    activateEntity: ((entity) => Promise<void>);
    activateEntityAt: ((entity, position) => Promise<void>);
    activateItem: ((offhand?) => void);
    addChatPattern: ((name, pattern, options?) => number);
    addChatPatternSet: ((name, patterns, options?) => number);
    attack: ((entity) => void);
    awaitMessage: ((...args) => Promise<string>);
    blockAt: ((point, extraInfos?) => null | Block);
    blockAtCursor: ((maxDistance?, matcher?) => null | Block);
    blockAtEntityCursor: ((entity?, maxDistance?, matcher?) => null | Block);
    blockInSight: ((maxSteps, vectorLength) => null | Block);
    canDigBlock: ((block) => boolean);
    canSeeBlock: ((block) => boolean);
    chat: ((message) => void);
    chatAddPattern: ((pattern, chatType, description?) => number);
    chatPatterns: ChatPattern[];
    clearControlStates: (() => void);
    clickWindow: ((slot, mouseButton, mode) => Promise<void>);
    closeWindow: ((window) => void);
    connect: ((options) => void);
    consume: (() => Promise<void>);
    controlState: ControlStateStatus;
    craft: ((recipe, count?, craftingTable?) => Promise<void>);
    creative: creativeMethods;
    currentWindow: null | Window<unknown>;
    deactivateItem: (() => void);
    denyResourcePack: (() => void);
    dig: ((block, forceLook?) => Promise<void>) & ((block, forceLook, digFace) => Promise<void>);
    digTime: ((block) => number);
    dismount: (() => void);
    elytraFly: (() => Promise<void>);
    end: ((reason?) => void);
    entities: {
        [id: string]: Entity;
    };
    entity: Entity;
    entityAtCursor: ((maxDistance?) => null | Entity);
    equip: ((item, destination) => Promise<void>);
    experience: Experience;
    findBlock: ((options) => null | Block);
    findBlocks: ((options) => Vec3[]);
    fireworkRocketDuration: number;
    fish: (() => Promise<void>);
    food: number;
    foodSaturation: number;
    game: GameState;
    getControlState: ((control) => boolean);
    getEquipmentDestSlot: ((destination) => number);
    getExplosionDamages: ((targetEntity, position, radius, rawDamages?) => null | number);
    hasPlugin: ((plugin) => boolean);
    health: number;
    heldItem: null | Item;
    inventory: Window<StorageEvents>;
    isABed: ((bedBlock) => boolean);
    isRaining: boolean;
    isSleeping: boolean;
    loadPlugin: ((plugin) => void);
    loadPlugins: ((plugins) => void);
    look: ((yaw, pitch, force?) => Promise<void>);
    lookAt: ((point, force?) => Promise<void>);
    majorVersion: string;
    mount: ((entity) => void);
    moveSlotItem: ((sourceSlot, destSlot) => Promise<void>);
    moveVehicle: ((left, forward) => void);
    nearestEntity: ((filter?) => null | Entity);
    openAnvil: ((anvil) => Promise<Anvil>);
    openBlock: ((block, direction?, cursorPos?) => Promise<Window<unknown>>);
    openChest: ((chest, direction?, cursorPos?) => Promise<Chest>);
    openContainer: ((chest, direction?, cursorPos?) => Promise<Chest | Dispenser>);
    openDispenser: ((dispenser) => Promise<Dispenser>);
    openEnchantmentTable: ((enchantmentTable) => Promise<EnchantmentTable>);
    openEntity: ((block, Class) => Promise<Window<unknown>>);
    openFurnace: ((furnace) => Promise<Furnace>);
    openVillager: ((villager) => Promise<Villager>);
    oxygenLevel: number;
    physics: PhysicsOptions;
    physicsEnabled: boolean;
    placeBlock: ((referenceBlock, faceVector) => Promise<void>);
    placeEntity: ((referenceBlock, faceVector) => Promise<Entity>);
    player: Player;
    players: {
        [username: string]: Player;
    };
    protocolVersion: string;
    putAway: ((slot) => Promise<void>);
    putSelectedItemRange: ((start, end, window, slot) => Promise<void>);
    quickBarSlot: number;
    quit: ((reason?) => void);
    recipesAll: ((itemType, metadata, craftingTable) => Recipe[]);
    recipesFor: ((itemType, metadata, minResultCount, craftingTable) => Recipe[]);
    registry: Registry;
    removeChatPattern: ((name) => void);
    respawn: (() => void);
    scoreboard: {
        10: ScoreBoard;
        11: ScoreBoard;
        12: ScoreBoard;
        13: ScoreBoard;
        14: ScoreBoard;
        15: ScoreBoard;
        16: ScoreBoard;
        17: ScoreBoard;
        18: ScoreBoard;
        3: ScoreBoard;
        4: ScoreBoard;
        5: ScoreBoard;
        6: ScoreBoard;
        7: ScoreBoard;
        8: ScoreBoard;
        9: ScoreBoard;
        belowName: ScoreBoard;
        list: ScoreBoard;
        sidebar: ScoreBoard;
    };
    scoreboards: {
        [name: string]: ScoreBoard;
    };
    setCommandBlock: ((pos, command, trackOutput) => void);
    setControlState: ((control, state) => void);
    setQuickBarSlot: ((slot) => void);
    setSettings: ((options) => void);
    settings: GameSettings;
    simpleClick: simpleClick;
    sleep: ((bedBlock) => Promise<void>);
    spawnPoint: Vec3;
    stopDigging: (() => void);
    supportFeature: (<T>(key) => SupportsFeature[T]);
    swarmOptions?: BotSwarmData;
    swingArm: ((hand, showHand?) => void);
    tabComplete: ((str, assumeCommand?, sendBlockInSight?, timeout?) => Promise<string[]>);
    tablist: Tablist;
    targetDigBlock: Block;
    teamMap: {
        [name: string]: Team;
    };
    teams: {
        [name: string]: Team;
    };
    thunderState: number;
    time: Time;
    toss: ((itemType, metadata, count) => Promise<void>);
    tossStack: ((item) => Promise<void>);
    trade: ((villagerInstance, tradeIndex, times?) => Promise<void>);
    transfer: ((options) => Promise<void>);
    unequip: ((destination) => Promise<void>);
    updateHeldItem: (() => void);
    updateSign: ((block, text, back?) => void);
    useOn: ((targetEntity) => void);
    username: string;
    usingHeldItem: boolean;
    version: string;
    waitForChunksToLoad: (() => Promise<void>);
    waitForTicks: ((ticks) => Promise<void>);
    wake: (() => Promise<void>);
    whisper: ((username, message) => void);
    world: WorldSync;
    writeBook: ((slot, pages) => Promise<void>);
    addListener<E>(event, listener): this;
    emit<E>(event, ...args): boolean;
    eventNames(): (string | symbol)[];
    getMaxListeners(): number;
    listenerCount<E>(event): number;
    listeners<E>(event): Function[];
    off<E>(event, listener): this;
    on<E>(event, listener): this;
    once<E>(event, listener): this;
    prependListener<E>(event, listener): this;
    prependOnceListener<E>(event, listener): this;
    rawListeners<E>(event): Function[];
    removeAllListeners<E>(event?): this;
    removeListener<E>(event, listener): this;
    setMaxListeners(maxListeners): this;
}

Hierarchy

  • Bot
    • SwarmBot

Properties

Methods

Properties

_client: Client
acceptResourcePack: (() => void)

Type declaration

    • (): void
    • Returns void

activateBlock: ((block, direction?, cursorPos?) => Promise<void>)

Type declaration

    • (block, direction?, cursorPos?): Promise<void>
    • Parameters

      • block: Block
      • Optional direction: Vec3
      • Optional cursorPos: Vec3

      Returns Promise<void>

activateEntity: ((entity) => Promise<void>)

Type declaration

    • (entity): Promise<void>
    • Parameters

      • entity: Entity

      Returns Promise<void>

activateEntityAt: ((entity, position) => Promise<void>)

Type declaration

    • (entity, position): Promise<void>
    • Parameters

      • entity: Entity
      • position: Vec3

      Returns Promise<void>

activateItem: ((offhand?) => void)

Type declaration

    • (offhand?): void
    • Parameters

      • Optional offhand: boolean

      Returns void

addChatPattern: ((name, pattern, options?) => number)

Type declaration

    • (name, pattern, options?): number
    • Parameters

      • name: string
      • pattern: RegExp
      • Optional options: chatPatternOptions

      Returns number

addChatPatternSet: ((name, patterns, options?) => number)

Type declaration

    • (name, patterns, options?): number
    • Parameters

      • name: string
      • patterns: RegExp[]
      • Optional options: chatPatternOptions

      Returns number

attack: ((entity) => void)

Type declaration

    • (entity): void
    • Parameters

      • entity: Entity

      Returns void

awaitMessage: ((...args) => Promise<string>)

Type declaration

    • (...args): Promise<string>
    • Parameters

      • Rest ...args: string[] | RegExp[]

      Returns Promise<string>

blockAt: ((point, extraInfos?) => null | Block)

Type declaration

    • (point, extraInfos?): null | Block
    • Parameters

      • point: Vec3
      • Optional extraInfos: boolean

      Returns null | Block

blockAtCursor: ((maxDistance?, matcher?) => null | Block)

Type declaration

    • (maxDistance?, matcher?): null | Block
    • Parameters

      • Optional maxDistance: number
      • Optional matcher: Function

      Returns null | Block

blockAtEntityCursor: ((entity?, maxDistance?, matcher?) => null | Block)

Type declaration

    • (entity?, maxDistance?, matcher?): null | Block
    • Parameters

      • Optional entity: Entity
      • Optional maxDistance: number
      • Optional matcher: Function

      Returns null | Block

blockInSight: ((maxSteps, vectorLength) => null | Block)

Type declaration

    • (maxSteps, vectorLength): null | Block
    • Parameters

      • maxSteps: number
      • vectorLength: number

      Returns null | Block

canDigBlock: ((block) => boolean)

Type declaration

    • (block): boolean
    • Parameters

      • block: Block

      Returns boolean

canSeeBlock: ((block) => boolean)

Type declaration

    • (block): boolean
    • Parameters

      • block: Block

      Returns boolean

chat: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

chatAddPattern: ((pattern, chatType, description?) => number)

Type declaration

    • (pattern, chatType, description?): number
    • Parameters

      • pattern: RegExp
      • chatType: string
      • Optional description: string

      Returns number

chatPatterns: ChatPattern[]
clearControlStates: (() => void)

Type declaration

    • (): void
    • Returns void

clickWindow: ((slot, mouseButton, mode) => Promise<void>)

Type declaration

    • (slot, mouseButton, mode): Promise<void>
    • Parameters

      • slot: number
      • mouseButton: number
      • mode: number

      Returns Promise<void>

closeWindow: ((window) => void)

Type declaration

    • (window): void
    • Parameters

      • window: Window<unknown>

      Returns void

connect: ((options) => void)

Type declaration

    • (options): void
    • Parameters

      • options: BotOptions

      Returns void

consume: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

controlState: ControlStateStatus
craft: ((recipe, count?, craftingTable?) => Promise<void>)

Type declaration

    • (recipe, count?, craftingTable?): Promise<void>
    • Parameters

      • recipe: Recipe
      • Optional count: number
      • Optional craftingTable: Block

      Returns Promise<void>

creative: creativeMethods
currentWindow: null | Window<unknown>
deactivateItem: (() => void)

Type declaration

    • (): void
    • Returns void

denyResourcePack: (() => void)

Type declaration

    • (): void
    • Returns void

dig: ((block, forceLook?) => Promise<void>) & ((block, forceLook, digFace) => Promise<void>)

Type declaration

    • (block, forceLook?): Promise<void>
    • Parameters

      • block: Block
      • Optional forceLook: boolean | "ignore"

      Returns Promise<void>

Type declaration

    • (block, forceLook, digFace): Promise<void>
    • Parameters

      • block: Block
      • forceLook: boolean | "ignore"
      • digFace: Vec3 | "auto" | "raycast"

      Returns Promise<void>

digTime: ((block) => number)

Type declaration

    • (block): number
    • Parameters

      • block: Block

      Returns number

dismount: (() => void)

Type declaration

    • (): void
    • Returns void

elytraFly: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

end: ((reason?) => void)

Type declaration

    • (reason?): void
    • Parameters

      • Optional reason: string

      Returns void

entities: {
    [id: string]: Entity;
}

Type declaration

  • [id: string]: Entity
entity: Entity
entityAtCursor: ((maxDistance?) => null | Entity)

Type declaration

    • (maxDistance?): null | Entity
    • Parameters

      • Optional maxDistance: number

      Returns null | Entity

equip: ((item, destination) => Promise<void>)

Type declaration

    • (item, destination): Promise<void>
    • Parameters

      • item: number | Item
      • destination: null | EquipmentDestination

      Returns Promise<void>

experience: Experience
findBlock: ((options) => null | Block)

Type declaration

    • (options): null | Block
    • Parameters

      • options: FindBlockOptions

      Returns null | Block

findBlocks: ((options) => Vec3[])

Type declaration

    • (options): Vec3[]
    • Parameters

      • options: FindBlockOptions

      Returns Vec3[]

fireworkRocketDuration: number
fish: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

food: number
foodSaturation: number
game: GameState
getControlState: ((control) => boolean)

Type declaration

    • (control): boolean
    • Parameters

      • control: ControlState

      Returns boolean

getEquipmentDestSlot: ((destination) => number)

Type declaration

    • (destination): number
    • Parameters

      • destination: string

      Returns number

getExplosionDamages: ((targetEntity, position, radius, rawDamages?) => null | number)

Type declaration

    • (targetEntity, position, radius, rawDamages?): null | number
    • Parameters

      • targetEntity: Entity
      • position: Vec3
      • radius: number
      • Optional rawDamages: boolean

      Returns null | number

hasPlugin: ((plugin) => boolean)

Type declaration

    • (plugin): boolean
    • Parameters

      • plugin: Plugin

      Returns boolean

health: number
heldItem: null | Item
inventory: Window<StorageEvents>
isABed: ((bedBlock) => boolean)

Type declaration

    • (bedBlock): boolean
    • Parameters

      • bedBlock: Block

      Returns boolean

isRaining: boolean
isSleeping: boolean
loadPlugin: ((plugin) => void)

Type declaration

    • (plugin): void
    • Parameters

      • plugin: Plugin

      Returns void

loadPlugins: ((plugins) => void)

Type declaration

    • (plugins): void
    • Parameters

      • plugins: Plugin[]

      Returns void

look: ((yaw, pitch, force?) => Promise<void>)

Type declaration

    • (yaw, pitch, force?): Promise<void>
    • Parameters

      • yaw: number
      • pitch: number
      • Optional force: boolean

      Returns Promise<void>

lookAt: ((point, force?) => Promise<void>)

Type declaration

    • (point, force?): Promise<void>
    • Parameters

      • point: Vec3
      • Optional force: boolean

      Returns Promise<void>

majorVersion: string
mount: ((entity) => void)

Type declaration

    • (entity): void
    • Parameters

      • entity: Entity

      Returns void

moveSlotItem: ((sourceSlot, destSlot) => Promise<void>)

Type declaration

    • (sourceSlot, destSlot): Promise<void>
    • Parameters

      • sourceSlot: number
      • destSlot: number

      Returns Promise<void>

moveVehicle: ((left, forward) => void)

Type declaration

    • (left, forward): void
    • Parameters

      • left: number
      • forward: number

      Returns void

nearestEntity: ((filter?) => null | Entity)

Type declaration

    • (filter?): null | Entity
    • Parameters

      • Optional filter: ((entity) => boolean)
          • (entity): boolean
          • Parameters

            • entity: Entity

            Returns boolean

      Returns null | Entity

openAnvil: ((anvil) => Promise<Anvil>)

Type declaration

    • (anvil): Promise<Anvil>
    • Parameters

      • anvil: Block

      Returns Promise<Anvil>

openBlock: ((block, direction?, cursorPos?) => Promise<Window<unknown>>)

Type declaration

    • (block, direction?, cursorPos?): Promise<Window<unknown>>
    • Parameters

      • block: Block
      • Optional direction: Vec3
      • Optional cursorPos: Vec3

      Returns Promise<Window<unknown>>

openChest: ((chest, direction?, cursorPos?) => Promise<Chest>)

Type declaration

    • (chest, direction?, cursorPos?): Promise<Chest>
    • Parameters

      • chest: Entity | Block
      • Optional direction: number
      • Optional cursorPos: Vec3

      Returns Promise<Chest>

openContainer: ((chest, direction?, cursorPos?) => Promise<Chest | Dispenser>)

Type declaration

    • (chest, direction?, cursorPos?): Promise<Chest | Dispenser>
    • Parameters

      • chest: Entity | Block
      • Optional direction: Vec3
      • Optional cursorPos: Vec3

      Returns Promise<Chest | Dispenser>

openDispenser: ((dispenser) => Promise<Dispenser>)

Type declaration

    • (dispenser): Promise<Dispenser>
    • Parameters

      • dispenser: Block

      Returns Promise<Dispenser>

openEnchantmentTable: ((enchantmentTable) => Promise<EnchantmentTable>)

Type declaration

    • (enchantmentTable): Promise<EnchantmentTable>
    • Parameters

      • enchantmentTable: Block

      Returns Promise<EnchantmentTable>

openEntity: ((block, Class) => Promise<Window<unknown>>)

Type declaration

    • (block, Class): Promise<Window<unknown>>
    • Parameters

      • block: Entity
      • Class: (new () => EventEmitter<DefaultEventMap>)
          • new (): EventEmitter<DefaultEventMap>
          • Returns EventEmitter<DefaultEventMap>

      Returns Promise<Window<unknown>>

openFurnace: ((furnace) => Promise<Furnace>)

Type declaration

    • (furnace): Promise<Furnace>
    • Parameters

      • furnace: Block

      Returns Promise<Furnace>

openVillager: ((villager) => Promise<Villager>)

Type declaration

    • (villager): Promise<Villager>
    • Parameters

      • villager: Entity

      Returns Promise<Villager>

oxygenLevel: number
physics: PhysicsOptions
physicsEnabled: boolean
placeBlock: ((referenceBlock, faceVector) => Promise<void>)

Type declaration

    • (referenceBlock, faceVector): Promise<void>
    • Parameters

      • referenceBlock: Block
      • faceVector: Vec3

      Returns Promise<void>

placeEntity: ((referenceBlock, faceVector) => Promise<Entity>)

Type declaration

    • (referenceBlock, faceVector): Promise<Entity>
    • Parameters

      • referenceBlock: Block
      • faceVector: Vec3

      Returns Promise<Entity>

player: Player
players: {
    [username: string]: Player;
}

Type declaration

  • [username: string]: Player
protocolVersion: string
putAway: ((slot) => Promise<void>)

Type declaration

    • (slot): Promise<void>
    • Parameters

      • slot: number

      Returns Promise<void>

putSelectedItemRange: ((start, end, window, slot) => Promise<void>)

Type declaration

    • (start, end, window, slot): Promise<void>
    • Parameters

      • start: number
      • end: number
      • window: Window<unknown>
      • slot: any

      Returns Promise<void>

quickBarSlot: number
quit: ((reason?) => void)

Type declaration

    • (reason?): void
    • Parameters

      • Optional reason: string

      Returns void

recipesAll: ((itemType, metadata, craftingTable) => Recipe[])

Type declaration

    • (itemType, metadata, craftingTable): Recipe[]
    • Parameters

      • itemType: number
      • metadata: null | number
      • craftingTable: null | boolean | Block

      Returns Recipe[]

recipesFor: ((itemType, metadata, minResultCount, craftingTable) => Recipe[])

Type declaration

    • (itemType, metadata, minResultCount, craftingTable): Recipe[]
    • Parameters

      • itemType: number
      • metadata: null | number
      • minResultCount: null | number
      • craftingTable: null | boolean | Block

      Returns Recipe[]

registry: Registry
removeChatPattern: ((name) => void)

Type declaration

    • (name): void
    • Parameters

      • name: string | number

      Returns void

respawn: (() => void)

Type declaration

    • (): void
    • Returns void

scoreboard: {
    10: ScoreBoard;
    11: ScoreBoard;
    12: ScoreBoard;
    13: ScoreBoard;
    14: ScoreBoard;
    15: ScoreBoard;
    16: ScoreBoard;
    17: ScoreBoard;
    18: ScoreBoard;
    3: ScoreBoard;
    4: ScoreBoard;
    5: ScoreBoard;
    6: ScoreBoard;
    7: ScoreBoard;
    8: ScoreBoard;
    9: ScoreBoard;
    belowName: ScoreBoard;
    list: ScoreBoard;
    sidebar: ScoreBoard;
}

Type declaration

  • 10: ScoreBoard
  • 11: ScoreBoard
  • 12: ScoreBoard
  • 13: ScoreBoard
  • 14: ScoreBoard
  • 15: ScoreBoard
  • 16: ScoreBoard
  • 17: ScoreBoard
  • 18: ScoreBoard
  • 3: ScoreBoard
  • 4: ScoreBoard
  • 5: ScoreBoard
  • 6: ScoreBoard
  • 7: ScoreBoard
  • 8: ScoreBoard
  • 9: ScoreBoard
  • belowName: ScoreBoard
  • list: ScoreBoard
  • sidebar: ScoreBoard
scoreboards: {
    [name: string]: ScoreBoard;
}

Type declaration

  • [name: string]: ScoreBoard
setCommandBlock: ((pos, command, trackOutput) => void)

Type declaration

    • (pos, command, trackOutput): void
    • Parameters

      • pos: Vec3
      • command: string
      • trackOutput: boolean

      Returns void

setControlState: ((control, state) => void)

Type declaration

    • (control, state): void
    • Parameters

      • control: ControlState
      • state: boolean

      Returns void

setQuickBarSlot: ((slot) => void)

Type declaration

    • (slot): void
    • Parameters

      • slot: number

      Returns void

setSettings: ((options) => void)

Type declaration

    • (options): void
    • Parameters

      • options: Partial<GameSettings>

      Returns void

settings: GameSettings
simpleClick: simpleClick
sleep: ((bedBlock) => Promise<void>)

Type declaration

    • (bedBlock): Promise<void>
    • Parameters

      • bedBlock: Block

      Returns Promise<void>

spawnPoint: Vec3
stopDigging: (() => void)

Type declaration

    • (): void
    • Returns void

supportFeature: (<T>(key) => SupportsFeature[T])

Type declaration

    • <T>(key): SupportsFeature[T]
    • Type Parameters

      • T extends keyof SupportsFeature

      Parameters

      • key: T

      Returns SupportsFeature[T]

swarmOptions?: BotSwarmData

The bot's BotSwarmData.

swingArm: ((hand, showHand?) => void)

Type declaration

    • (hand, showHand?): void
    • Parameters

      • hand: undefined | "left" | "right"
      • Optional showHand: boolean

      Returns void

tabComplete: ((str, assumeCommand?, sendBlockInSight?, timeout?) => Promise<string[]>)

Type declaration

    • (str, assumeCommand?, sendBlockInSight?, timeout?): Promise<string[]>
    • Parameters

      • str: string
      • Optional assumeCommand: boolean
      • Optional sendBlockInSight: boolean
      • Optional timeout: number

      Returns Promise<string[]>

tablist: Tablist
targetDigBlock: Block
teamMap: {
    [name: string]: Team;
}

Type declaration

  • [name: string]: Team
teams: {
    [name: string]: Team;
}

Type declaration

  • [name: string]: Team
thunderState: number
time: Time
toss: ((itemType, metadata, count) => Promise<void>)

Type declaration

    • (itemType, metadata, count): Promise<void>
    • Parameters

      • itemType: number
      • metadata: null | number
      • count: null | number

      Returns Promise<void>

tossStack: ((item) => Promise<void>)

Type declaration

    • (item): Promise<void>
    • Parameters

      • item: Item

      Returns Promise<void>

trade: ((villagerInstance, tradeIndex, times?) => Promise<void>)

Type declaration

    • (villagerInstance, tradeIndex, times?): Promise<void>
    • Parameters

      • villagerInstance: Villager
      • tradeIndex: string | number
      • Optional times: number

      Returns Promise<void>

transfer: ((options) => Promise<void>)

Type declaration

    • (options): Promise<void>
    • Parameters

      • options: TransferOptions

      Returns Promise<void>

unequip: ((destination) => Promise<void>)

Type declaration

    • (destination): Promise<void>
    • Parameters

      • destination: null | EquipmentDestination

      Returns Promise<void>

updateHeldItem: (() => void)

Type declaration

    • (): void
    • Returns void

updateSign: ((block, text, back?) => void)

Type declaration

    • (block, text, back?): void
    • Parameters

      • block: Block
      • text: string
      • Optional back: boolean

      Returns void

useOn: ((targetEntity) => void)

Type declaration

    • (targetEntity): void
    • Parameters

      • targetEntity: Entity

      Returns void

username: string
usingHeldItem: boolean
version: string
waitForChunksToLoad: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

waitForTicks: ((ticks) => Promise<void>)

Type declaration

    • (ticks): Promise<void>
    • Parameters

      • ticks: number

      Returns Promise<void>

wake: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

whisper: ((username, message) => void)

Type declaration

    • (username, message): void
    • Parameters

      • username: string
      • message: string

      Returns void

world: WorldSync
writeBook: ((slot, pages) => Promise<void>)

Type declaration

    • (slot, pages): Promise<void>
    • Parameters

      • slot: number
      • pages: string[]

      Returns Promise<void>

Methods

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E
    • listener: BotEvents[E]

    Returns this

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E
    • Rest ...args: Arguments<BotEvents[E]>

    Returns boolean

  • Returns (string | symbol)[]

  • Returns number

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E

    Returns number

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E

    Returns Function[]

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E
    • listener: BotEvents[E]

    Returns this

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E
    • listener: BotEvents[E]

    Returns this

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E
    • listener: BotEvents[E]

    Returns this

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E
    • listener: BotEvents[E]

    Returns this

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E
    • listener: BotEvents[E]

    Returns this

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E

    Returns Function[]

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • Optional event: E

    Returns this

  • Type Parameters

    • E extends keyof BotEvents

    Parameters

    • event: E
    • listener: BotEvents[E]

    Returns this

  • Parameters

    • maxListeners: number

    Returns this