File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { Entity } from 'prismarine-entity'
1010import { ChatMessage } from 'prismarine-chat'
1111import { world } from 'prismarine-world'
1212import { Registry } from 'prismarine-registry'
13+ import { IndexedData } from 'minecraft-data'
1314
1415export function createBot ( options : { client : Client } & Partial < BotOptions > ) : Bot
1516export function createBot ( options : BotOptions ) : Bot
@@ -26,6 +27,8 @@ export interface BotOptions extends ClientOptions {
2627 difficulty ?: number
2728 chatLengthLimit ?: number
2829 physicsEnabled ?: boolean
30+ /** @default 4 */
31+ maxCatchupTicks ?: number
2932 client ?: Client
3033 brand ?: string
3134 defaultChatPatterns ?: boolean
@@ -204,7 +207,7 @@ export interface Bot extends TypedEmitter<BotEvents> {
204207
205208 connect : ( options : BotOptions ) => void
206209
207- supportFeature : ( feature : string ) => boolean
210+ supportFeature : IndexedData [ 'supportFeature' ]
208211
209212 end : ( reason ?: string ) => void
210213
You can’t perform that action at this time.
0 commit comments