Skip to content

Commit

Permalink
Update index.d.ts (#3175)
Browse files Browse the repository at this point in the history
Added the type reference for the world object
  • Loading branch information
StayWithMeSenpai committed Aug 31, 2023
1 parent 010460e commit d4db399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Recipe } from 'prismarine-recipe'
import { Block } from 'prismarine-block'
import { Entity } from 'prismarine-entity'
import { ChatMessage } from 'prismarine-chat'
import { world } from 'prismarine-world'
import { Registry } from 'prismarine-registry'

export function createBot (options: { client: Client } & Partial<BotOptions>): Bot
Expand Down Expand Up @@ -192,7 +193,7 @@ export interface Bot extends TypedEmitter<BotEvents> {
teamMap: { [name: string]: Team }
controlState: ControlStateStatus
creative: creativeMethods
world: any
world: world.World
_client: Client
heldItem: Item | null
usingHeldItem: boolean
Expand Down

0 comments on commit d4db399

Please sign in to comment.