SYMBOL INDEX (322 symbols across 101 files) FILE: .github/helper/updator.js function main (line 22) | async function main () { FILE: examples/anvil.js function tossItem (line 62) | async function tossItem (name, amount) { function itemByName (line 82) | function itemByName (name) { function itemToString (line 86) | function itemToString (item) { function sayItems (line 94) | function sayItems (items = bot.inventory.items()) { function getAnvilIds (line 103) | function getAnvilIds () { function rename (line 112) | async function rename (bot, itemName, name) { function combine (line 126) | async function combine (bot, itemName1, itemName2, name) { FILE: examples/attack.js function attackPlayer (line 27) | function attackPlayer (username) { function attackEntity (line 37) | function attackEntity () { FILE: examples/bee.js function loop (line 18) | async function loop (n) { FILE: examples/block_entity.js function spawner (line 25) | function spawner () { FILE: examples/book.js function toss (line 42) | function toss () { function write (line 47) | async function write () { function print (line 57) | function print () { FILE: examples/chat_parsing.js function makeChatMessages (line 38) | async function makeChatMessages () { FILE: examples/chatterbox.js function canSee (line 60) | function canSee (pos) { function sayPosition (line 70) | function sayPosition (username) { function sayEquipment (line 75) | function sayEquipment () { function saySpawnPoint (line 90) | function saySpawnPoint () { function sayBlockUnder (line 94) | function sayBlockUnder () { function quit (line 100) | function quit (username) { function sayNick (line 104) | function sayNick () { FILE: examples/chest.js function sayItems (line 71) | function sayItems (items = bot.inventory.items()) { function watchChest (line 80) | async function watchChest (minecart, blocks = []) { function watchFurnace (line 166) | async function watchFurnace () { function watchEnchantmentTable (line 252) | async function watchEnchantmentTable () { function useInvsee (line 355) | function useInvsee (username, showEquipment) { function itemToString (line 375) | function itemToString (item) { function itemByType (line 383) | function itemByType (items, type) { function itemByName (line 393) | function itemByName (items, name) { FILE: examples/crossbower.js function sleep (line 55) | function sleep (ms) { FILE: examples/digger.js function sayItems (line 50) | function sayItems (items = bot.inventory.items()) { function dig (line 59) | async function dig () { function build (line 79) | function build () { function equipDirt (line 106) | async function equipDirt () { function itemToString (line 121) | function itemToString (item) { FILE: examples/elytra.js function sleep (line 64) | function sleep (ms) { FILE: examples/farmer.js function blockToSow (line 19) | function blockToSow () { function blockToHarvest (line 31) | function blockToHarvest () { function loop (line 41) | async function loop () { FILE: examples/fisherman.js function onCollect (line 38) | function onCollect (player, entity) { function startFishing (line 45) | async function startFishing () { function stopFishing (line 64) | function stopFishing () { function eat (line 72) | async function eat () { FILE: examples/graffiti.js function watchPaintingOrSign (line 40) | function watchPaintingOrSign () { function updateSign (line 58) | function updateSign (message) { FILE: examples/guard.js function guardArea (line 27) | function guardArea (pos) { function stopGuarding (line 37) | function stopGuarding () { function moveToGuardPos (line 44) | function moveToGuardPos () { FILE: examples/inventory.js function sayItems (line 67) | function sayItems (items = null) { function tossItem (line 80) | async function tossItem (name, amount) { function equipItem (line 100) | async function equipItem (name, destination) { function unequipItem (line 114) | async function unequipItem (destination) { function useEquippedItem (line 123) | function useEquippedItem () { function craftItem (line 128) | async function craftItem (name, amount) { function itemToString (line 155) | function itemToString (item) { function itemByName (line 163) | function itemByName (name) { FILE: examples/jumper.js function watchTarget (line 104) | function watchTarget () { FILE: examples/modular_mineflayer/index.js constant OPTIONS (line 5) | const OPTIONS = { function injectModules (line 10) | function injectModules (bot) { function initBot (line 20) | function initBot () { FILE: examples/multiple.js function next (line 9) | function next () { function createBot (line 20) | function createBot (name) { FILE: examples/multiple_from_file.js function makeBot (line 19) | function makeBot ([_u, _p], ix) { function main (line 35) | async function main () { FILE: examples/pathfinder/gps.js constant RANGE_GOAL (line 18) | const RANGE_GOAL = 1 // get within this radius of the player FILE: examples/place_end_crystal/index.js constant AABB (line 9) | const AABB = require('prismarine-physics/lib/aabb') constant MAX_DIST_FROM_BLOCK_TO_PLACE (line 23) | const MAX_DIST_FROM_BLOCK_TO_PLACE = 4 FILE: examples/plugins/afk.js function rotate (line 46) | function rotate () { FILE: examples/python/basic.py function handle (line 18) | def handle(*args): function handle (line 40) | def handle(*args): FILE: examples/python/chatterbox.py function handle (line 40) | def handle(this, username, message, *args): function can_see (line 65) | def can_see(pos): function say_position (line 75) | def say_position(username): function say_equipment (line 83) | def say_equipment(username): function say_spawn (line 102) | def say_spawn(): function say_block_under (line 106) | def say_block_under(): function quit_game (line 112) | def quit_game(username): function say_nick (line 116) | def say_nick(): function whisper (line 121) | def whisper(this, username, message, rawMessage, *a): function nonSpokenChat (line 127) | def nonSpokenChat(this, message): function login (line 132) | def login(this): function spawn (line 137) | def spawn(this): function spawnReset (line 142) | def spawnReset(this, message): function forcedMove (line 147) | def forcedMove(this): function health (line 153) | def health(this): function death (line 158) | def death(this): function kicked (line 163) | def kicked(this, reason, *a): function time (line 169) | def time(this): function rain (line 174) | def rain(this): function noteHeard (line 182) | def noteHeard(this, block, instrument, pitch): function chestLidMove (line 187) | def chestLidMove(this, block, isOpen, *a): function pistonMove (line 193) | def pistonMove(this, block, isPulling, direction): function playerJoined (line 199) | def playerJoined(this, player): function playerLeft (line 206) | def playerLeft(this, player): function playerCollect (line 213) | def playerCollect(this, collector, collected): function entitySpawn (line 223) | def entitySpawn(this, entity): function entityHurt (line 239) | def entityHurt(this, entity): function entitySwingArm (line 249) | def entitySwingArm(this, entity): function entityCrouch (line 254) | def entityCrouch(this, entity): function entityUncrouch (line 259) | def entityUncrouch(this, entity): function entitySleep (line 264) | def entitySleep(this, entity): function entityWake (line 269) | def entityWake(this, entity): function entityEat (line 274) | def entityEat(this, entity): function entityAttach (line 279) | def entityAttach(this, entity, vehicle): function entityDetach (line 285) | def entityDetach(this, entity, vehicle): function entityEquipmentChange (line 291) | def entityEquipmentChange(this, entity): function entityEffect (line 296) | def entityEffect(this, entity, effect): function entityEffectEnd (line 301) | def entityEffectEnd(this, entity, effect): FILE: examples/raycast.js function block (line 21) | function block () { FILE: examples/reconnector.js function createBot (line 11) | function createBot () { FILE: examples/screenshot-with-node-canvas-webgl/screenshot.js constant THREE (line 11) | const THREE = require('three') class Camera (line 41) | class Camera extends EventEmitter { method constructor (line 42) | constructor (bot) { method _init (line 56) | async _init () { method takePicture (line 70) | async takePicture (direction, name) { FILE: examples/skin_blinker.js function toggleSkin (line 23) | function toggleSkin () { FILE: examples/sleeper.js function goToSleep (line 42) | async function goToSleep () { function wakeUp (line 58) | async function wakeUp () { FILE: examples/tab_complete.js function complete (line 23) | async function complete (str) { FILE: examples/trader.js function showVillagers (line 48) | function showVillagers () { function showInventory (line 55) | function showInventory () { function showTrades (line 62) | async function showTrades (id) { function trade (line 84) | async function trade (id, index, count) { function stringifyTrades (line 148) | function stringifyTrades (trades) { function stringifyItem (line 158) | function stringifyItem (item) { FILE: index.d.ts type BotOptions (line 18) | interface BotOptions extends ClientOptions { type ChatLevel (line 38) | type ChatLevel = 'enabled' | 'commandsOnly' | 'disabled' type ViewDistance (line 39) | type ViewDistance = 'far' | 'normal' | 'short' | 'tiny' | number type MainHands (line 40) | type MainHands = 'left' | 'right' type PluginOptions (line 42) | interface PluginOptions { type Plugin (line 46) | type Plugin = (bot: Bot, options: BotOptions) => void type BotEvents (line 48) | interface BotEvents { type CommandBlockOptions (line 168) | interface CommandBlockOptions { type Bot (line 175) | interface Bot extends TypedEmitter { type simpleClick (line 447) | interface simpleClick { type Tablist (line 452) | interface Tablist { type chatPatternOptions (line 457) | interface chatPatternOptions { type GameState (line 462) | interface GameState { type LevelType (line 472) | type LevelType = type GameMode (line 480) | type GameMode = 'survival' | 'creative' | 'adventure' | 'spectator' type Dimension (line 481) | type Dimension = 'the_nether' | 'overworld' | 'the_end' type Difficulty (line 482) | type Difficulty = 'peaceful' | 'easy' | 'normal' | 'hard' type Player (line 484) | interface Player { type SkinData (line 498) | interface SkinData { type ChatPattern (line 503) | interface ChatPattern { type SkinParts (line 509) | interface SkinParts { type GameSettings (line 519) | interface GameSettings { type Experience (line 528) | interface Experience { type PhysicsOptions (line 534) | interface PhysicsOptions { type Time (line 550) | interface Time { type ControlStateStatus (line 562) | interface ControlStateStatus { type ControlState (line 572) | type ControlState = type Effect (line 581) | interface Effect { type Instrument (line 587) | interface Instrument { type FindBlockOptions (line 592) | interface FindBlockOptions { type EquipmentDestination (line 600) | type EquipmentDestination = 'hand' | 'head' | 'torso' | 'legs' | 'feet' ... type TransferOptions (line 602) | interface TransferOptions { type creativeMethods (line 613) | interface creativeMethods { class Location (line 630) | class Location { class Painting (line 641) | class Painting { type StorageEvents (line 650) | interface StorageEvents { type FurnaceEvents (line 656) | interface FurnaceEvents extends StorageEvents { type ConditionalStorageEvents (line 660) | interface ConditionalStorageEvents extends StorageEvents { class Chest (line 664) | class Chest extends Window { class Furnace (line 682) | class Furnace extends Window { class Dispenser (line 715) | class Dispenser extends Window { class EnchantmentTable (line 733) | class EnchantmentTable extends Window { class Anvil (line 753) | class Anvil { type Enchantment (line 758) | interface Enchantment { class Villager (line 763) | class Villager extends Window { type VillagerTrade (line 771) | interface VillagerTrade { class ScoreBoard (line 786) | class ScoreBoard { type ScoreBoardItem (line 801) | interface ScoreBoardItem { class Team (line 807) | class Team { type DisplaySlot (line 832) | type DisplaySlot = class BossBar (line 853) | class BossBar { class Particle (line 874) | class Particle { FILE: lib/bossbar.js function loader (line 4) | function loader (registry) { FILE: lib/conversions.js constant PI_2 (line 5) | const PI_2 = Math.PI * 2 constant TO_RAD (line 6) | const TO_RAD = PI / 180 constant TO_DEG (line 7) | const TO_DEG = 1 / TO_RAD constant FROM_NOTCH_BYTE (line 8) | const FROM_NOTCH_BYTE = 360 / 256 constant FROM_NOTCH_VEL (line 10) | const FROM_NOTCH_VEL = 1 / 8000 function toRadians (line 22) | function toRadians (degrees) { function toDegrees (line 26) | function toDegrees (radians) { function fromNotchianYaw (line 30) | function fromNotchianYaw (yaw) { function fromNotchianPitch (line 34) | function fromNotchianPitch (pitch) { function fromNotchVelocity (line 38) | function fromNotchVelocity (vel) { FILE: lib/loader.js function createBot (line 66) | function createBot (options = {}) { FILE: lib/location.js constant CHUNK_SIZE (line 2) | const CHUNK_SIZE = new Vec3(16, 16, 16) class Location (line 4) | class Location { method constructor (line 5) | constructor (absoluteVector) { FILE: lib/painting.js function Painting (line 1) | function Painting (id, pos, name, direction) { FILE: lib/particle.js function loader (line 5) | function loader (registry) { FILE: lib/plugin_loader.js function inject (line 5) | function inject (bot, options) { FILE: lib/plugins/anvil.js function inject (line 7) | function inject (bot) { FILE: lib/plugins/bed.js constant CARDINAL_DIRECTIONS (line 5) | const CARDINAL_DIRECTIONS = ['south', 'west', 'north', 'east'] function inject (line 7) | function inject (bot) { FILE: lib/plugins/block_actions.js constant CARDINALS (line 5) | const CARDINALS = { constant FACING_MAP (line 12) | const FACING_MAP = { function inject (line 19) | function inject (bot) { FILE: lib/plugins/blocks.js function inject (line 23) | function inject (bot, { version, storageBuilder, hideErrors }) { function onesInShort (line 607) | function onesInShort (n) { FILE: lib/plugins/book.js function inject (line 6) | function inject (bot) { FILE: lib/plugins/boss_bar.js function inject (line 3) | function inject (bot, { version }) { FILE: lib/plugins/breath.js function inject (line 3) | function inject (bot) { FILE: lib/plugins/chat.js constant USERNAME_REGEX (line 3) | const USERNAME_REGEX = '(?:\\(.{1,15}\\)|\\[.{1,15}\\]|.){0,5}?(\\w+)' constant LEGACY_VANILLA_CHAT_REGEX (line 4) | const LEGACY_VANILLA_CHAT_REGEX = new RegExp(`^${USERNAME_REGEX}\\s?[>:\... function inject (line 8) | function inject (bot, options) { FILE: lib/plugins/chest.js function inject (line 5) | function inject (bot) { FILE: lib/plugins/command_block.js function inject (line 6) | function inject (bot) { FILE: lib/plugins/craft.js function inject (line 6) | function inject (bot) { FILE: lib/plugins/creative.js function inject (line 8) | function inject (bot) { function vecMagnitude (line 110) | function vecMagnitude (vec) { FILE: lib/plugins/digging.js function inject (line 8) | function inject (bot) { function noop (line 262) | function noop (err) { FILE: lib/plugins/enchantment_table.js function inject (line 6) | function inject (bot) { FILE: lib/plugins/entities.js constant PLAYER_HEIGHT (line 5) | const PLAYER_HEIGHT = 1.8 constant CROUCH_HEIGHT (line 6) | const CROUCH_HEIGHT = 1.5 constant PLAYER_WIDTH (line 7) | const PLAYER_WIDTH = 0.6 constant PLAYER_EYEHEIGHT (line 8) | const PLAYER_EYEHEIGHT = 1.62 constant CROUCH_EYEHEIGHT (line 9) | const CROUCH_EYEHEIGHT = 1.27 function inject (line 32) | function inject (bot) { function parseMetadata (line 936) | function parseMetadata (metadata, entityMetadata = {}) { function extractSkinInformation (line 946) | function extractSkinInformation (properties) { FILE: lib/plugins/experience.js function inject (line 3) | function inject (bot) { FILE: lib/plugins/explosion.js function calcExposure (line 6) | function calcExposure (playerPos, explosionPos, world) { function getDamageAfterAbsorb (line 33) | function getDamageAfterAbsorb (damages, armorValue, toughness) { function getAttributeValue (line 40) | function getAttributeValue (prop) { function inject (line 58) | function inject (bot) { FILE: lib/plugins/fishing.js function inject (line 6) | function inject (bot) { FILE: lib/plugins/furnace.js function inject (line 5) | function inject (bot) { FILE: lib/plugins/game.js function inject (line 20) | function inject (bot, options) { FILE: lib/plugins/generic_place.js function inject (line 4) | function inject (bot) { function vectorToDirection (line 93) | function vectorToDirection (v) { FILE: lib/plugins/health.js function inject (line 3) | function inject (bot, options) { FILE: lib/plugins/inventory.js constant DIG_CLICK_TIMEOUT (line 9) | const DIG_CLICK_TIMEOUT = 500 constant CONSUME_TIMEOUT (line 13) | const CONSUME_TIMEOUT = 2500 constant WINDOW_TIMEOUT (line 15) | const WINDOW_TIMEOUT = 5000 constant ALWAYS_CONSUMABLES (line 17) | const ALWAYS_CONSUMABLES = [ function inject (line 24) | function inject (bot, { hideErrors }) { FILE: lib/plugins/kick.js function inject (line 3) | function inject (bot) { FILE: lib/plugins/particle.js function inject (line 3) | function inject (bot, { version }) { FILE: lib/plugins/physics.js constant PI_2 (line 13) | const PI_2 = Math.PI * 2 constant PHYSICS_INTERVAL_MS (line 14) | const PHYSICS_INTERVAL_MS = 50 constant PHYSICS_TIMESTEP (line 15) | const PHYSICS_TIMESTEP = PHYSICS_INTERVAL_MS / 1000 // 0.05 function inject (line 17) | function inject (bot, { physicsEnabled, maxCatchupTicks }) { FILE: lib/plugins/place_block.js function inject (line 5) | function inject (bot) { FILE: lib/plugins/place_entity.js function inject (line 5) | function inject (bot) { FILE: lib/plugins/rain.js function inject (line 4) | function inject (bot) { FILE: lib/plugins/ray_trace.js function getViewDirection (line 5) | function getViewDirection (pitch, yaw) { FILE: lib/plugins/resource_pack.js constant UUID (line 1) | const UUID = require('uuid-1345') function inject (line 5) | function inject (bot) { FILE: lib/plugins/scoreboard.js function inject (line 3) | function inject (bot) { FILE: lib/plugins/settings.js function inject (line 23) | function inject (bot, options) { function extend (line 102) | function extend (obj, src) { FILE: lib/plugins/simple_inventory.js constant QUICK_BAR_COUNT (line 5) | const QUICK_BAR_COUNT = 9 constant QUICK_BAR_START (line 6) | const QUICK_BAR_START = 36 function inject (line 8) | function inject (bot) { FILE: lib/plugins/sound.js function inject (line 5) | function inject (bot) { FILE: lib/plugins/spawn_point.js function inject (line 5) | function inject (bot) { FILE: lib/plugins/tablist.js function inject (line 7) | function inject (bot) { FILE: lib/plugins/team.js constant TEAM_MODES (line 4) | const TEAM_MODES = ['add', 'remove', 'change', 'join', 'leave'] function inject (line 6) | function inject (bot) { FILE: lib/plugins/time.js function inject (line 3) | function inject (bot) { function longToBigInt (line 36) | function longToBigInt (arr) { FILE: lib/plugins/title.js function inject (line 2) | function inject (bot) { FILE: lib/plugins/villager.js function inject (line 6) | function inject (bot, { version }) { FILE: lib/promise_utils.js function sleep (line 1) | function sleep (ms) { function createTask (line 5) | function createTask () { function createDoneTask (line 26) | function createDoneTask () { function onceWithCleanup (line 47) | function onceWithCleanup (emitter, event, { timeout = 0, checkCondition ... function once (line 75) | function once (emitter, event, timeout = 20000) { function withTimeout (line 79) | function withTimeout (promise, timeout) { FILE: lib/scoreboard.js class ScoreBoard (line 10) | class ScoreBoard { method constructor (line 11) | constructor (packet) { method setTitle (line 17) | setTitle (title) { method add (line 25) | add (name, value) { method remove (line 40) | remove (name) { method items (line 46) | get items () { method list (line 52) | get list () { method sidebar (line 56) | get sidebar () { method belowName (line 60) | get belowName () { FILE: lib/team.js function colorString (line 1) | function colorString (color) { function loader (line 30) | function loader (registry) { FILE: test/externalTest.js constant START_THE_SERVER (line 13) | const START_THE_SERVER = true constant TEST_TIMEOUT_MS (line 15) | const TEST_TIMEOUT_MS = 90000 constant MC_SERVER_PATH (line 34) | const MC_SERVER_PATH = path.join(__dirname, 'server') function begin (line 56) | function begin () { FILE: test/externalTests/anvil.js function runTest (line 5) | async function runTest (bot, testFunction) { function addTest (line 41) | function addTest (name, f) { FILE: test/externalTests/chat.js function runTest (line 5) | async function runTest (bot, testFunction) { function addTest (line 11) | function addTest (name, f) { FILE: test/externalTests/crafting.js function findCraftingTable (line 18) | function findCraftingTable () { function craft (line 30) | async function craft (amount, name) { FILE: test/externalTests/creative.js constant SLOT (line 3) | const SLOT = 36 FILE: test/externalTests/digAndBuild.js function waitForFall (line 21) | async function waitForFall () { FILE: test/externalTests/digEverything.js function digSomething (line 68) | async function digSomething (blockId, bot) { FILE: test/externalTests/exampleInventory.js function makeTest (line 71) | function makeTest (inStr, outStr) { function makeListener (line 77) | function makeListener (wantedMessage) { FILE: test/externalTests/fishing.js function onPlayerCollect (line 10) | function onPlayerCollect (collector, collected) { FILE: test/externalTests/gamemode.js function addTest (line 9) | function addTest (name, f) { FILE: test/externalTests/particles.js function onParticleEvent (line 7) | function onParticleEvent (particle) { FILE: test/externalTests/placeEntity.js function runTest (line 6) | async function runTest (bot, testFunction) { function addTest (line 12) | function addTest (name, f) { function placeBlocksForTest (line 38) | async function placeBlocksForTest (blockName) { FILE: test/externalTests/plugins/testCommon.js function inject (line 12) | function inject (bot) { FILE: test/externalTests/trade.js function expectAmount (line 5) | function expectAmount (amount, greaterThan) { function verifyTrade (line 134) | function verifyTrade (trade) { FILE: test/externalTests/useChests.js function itemByName (line 31) | function itemByName (items, name) { function depositBones (line 39) | async function depositBones (chestLocation, count) { function withdrawBones (line 53) | async function withdrawBones (chestLocation, count) { function handler (line 91) | async function handler (block, isOpen, block2) { function getRandomStackableItem (line 136) | function getRandomStackableItem () { function createRandomLayout (line 148) | async function createRandomLayout (window, slotPopulationFactor) { function testMouseClick (line 170) | async function testMouseClick (window, clicks) { function clearLargeChest (line 177) | function clearLargeChest () { FILE: test/internalTest.js function chatText (line 17) | function chatText (text) { function generateChunkPacket (line 24) | function generateChunkPacket (chunk) { function onChat (line 185) | function onChat (packet) {