Skip to content

Commit 91108d3

Browse files
authored
Add maxCatchupTicks, improve supportFeature typing (#3277)
1 parent 216cab7 commit 91108d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.d.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { Entity } from 'prismarine-entity'
1010
import { ChatMessage } from 'prismarine-chat'
1111
import { world } from 'prismarine-world'
1212
import { Registry } from 'prismarine-registry'
13+
import { IndexedData } from 'minecraft-data'
1314

1415
export function createBot (options: { client: Client } & Partial<BotOptions>): Bot
1516
export 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

0 commit comments

Comments
 (0)