Skip to content

Commit

Permalink
Add maxCatchupTicks, improve supportFeature typing (#3277)
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Jan 6, 2024
1 parent 216cab7 commit 91108d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Entity } from 'prismarine-entity'
import { ChatMessage } from 'prismarine-chat'
import { world } from 'prismarine-world'
import { Registry } from 'prismarine-registry'
import { IndexedData } from 'minecraft-data'

export function createBot (options: { client: Client } & Partial<BotOptions>): Bot
export function createBot (options: BotOptions): Bot
Expand All @@ -26,6 +27,8 @@ export interface BotOptions extends ClientOptions {
difficulty?: number
chatLengthLimit?: number
physicsEnabled?: boolean
/** @default 4 */
maxCatchupTicks?: number
client?: Client
brand?: string
defaultChatPatterns?: boolean
Expand Down Expand Up @@ -204,7 +207,7 @@ export interface Bot extends TypedEmitter<BotEvents> {

connect: (options: BotOptions) => void

supportFeature: (feature: string) => boolean
supportFeature: IndexedData['supportFeature']

end: (reason?: string) => void

Expand Down

0 comments on commit 91108d3

Please sign in to comment.