Skip to content

Commit

Permalink
add typing for brewing stand methods
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqtoday committed Feb 20, 2024
1 parent 0052825 commit fe74897
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ export interface Bot extends TypedEmitter<BotEvents> {
slot: number,
pages: string[]
) => Promise<void>

openBrewingStand: (brewingStand: Block) => Promise<BrewingStand>

openContainer: (chest: Block | Entity, direction?: Vec3, cursorPos?: Vec3) => Promise<Chest | Dispenser>

Expand Down Expand Up @@ -649,6 +651,36 @@ interface ConditionalStorageEvents extends StorageEvents {
ready: () => void
}

export class BrewingStand extends Window<StorageManager> {
constructor ();

fuel: any

progress: number

progressSeconds: number

takeIngredient: () => Promise<any>

takeFuel: () => Promise<any>

takePotion: (slot: number) => Promise<any>

takePotions: () => Promise<void>

putIngredient: (itemType: any, metadata: any, count: any) => Promise<void>

putFuel: (itemType: any, metadata: any, count: any) => Promise<void>

putPotion: (slot: any, itemType: any, metadata: any, count: any) => Promise<void>

ingredientItem: () => any

fuelItem: () => any

potions: () => any
}

export class Chest extends Window<StorageEvents> {
constructor ();

Expand Down

0 comments on commit fe74897

Please sign in to comment.