| 174 | } |
| 175 | |
| 176 | export interface Bot extends TypedEmitter<BotEvents> { |
| 177 | username: string |
| 178 | protocolVersion: string |
| 179 | majorVersion: string |
| 180 | version: string |
| 181 | entity: Entity |
| 182 | entities: { [id: string]: Entity } |
| 183 | fireworkRocketDuration: number |
| 184 | spawnPoint: Vec3 |
| 185 | game: GameState |
| 186 | player: Player |
| 187 | players: { [username: string]: Player } |
| 188 | isRaining: boolean |
| 189 | thunderState: number |
| 190 | chatPatterns: ChatPattern[] |
| 191 | settings: GameSettings |
| 192 | experience: Experience |
| 193 | health: number |
| 194 | food: number |
| 195 | foodSaturation: number |
| 196 | oxygenLevel: number |
| 197 | physics: PhysicsOptions |
| 198 | physicsEnabled: boolean |
| 199 | time: Time |
| 200 | quickBarSlot: number |
| 201 | inventory: Window<StorageEvents> |
| 202 | targetDigBlock: Block |
| 203 | isSleeping: boolean |
| 204 | scoreboards: { [name: string]: ScoreBoard } |
| 205 | scoreboard: { [slot in DisplaySlot]: ScoreBoard } |
| 206 | teams: { [name: string]: Team } |
| 207 | teamMap: { [name: string]: Team } |
| 208 | controlState: ControlStateStatus |
| 209 | creative: creativeMethods |
| 210 | world: world.WorldSync |
| 211 | _client: Client |
| 212 | heldItem: Item | null |
| 213 | usingHeldItem: boolean |
| 214 | currentWindow: Window | null |
| 215 | simpleClick: simpleClick |
| 216 | tablist: Tablist |
| 217 | registry: Registry |
| 218 | |
| 219 | connect: (options: BotOptions) => void |
| 220 | |
| 221 | supportFeature: IndexedData['supportFeature'] |
| 222 | |
| 223 | end: (reason?: string) => void |
| 224 | |
| 225 | blockAt: (point: Vec3, extraInfos?: boolean) => Block | null |
| 226 | |
| 227 | blockInSight: (maxSteps: number, vectorLength: number) => Block | null |
| 228 | |
| 229 | blockAtCursor: (maxDistance?: number, matcher?: Function) => Block | null |
| 230 | blockAtEntityCursor: (entity?: Entity, maxDistance?: number, matcher?: Function) => Block | null |
| 231 | |
| 232 | canSeeBlock: (block: Block) => boolean |
| 233 |
nothing calls this directly
no outgoing calls
no test coverage detected