Перейти к основному содержанию

MachineRegistry

Index

Functions

createInventoryWindow

  • createInventoryWindow(header: string, uiDescriptor: { drawing?: DrawingSet; elements: ElementSet }): UI.StandartWindow
  • Parameters

    • header: string
    • uiDescriptor: { drawing?: DrawingSet; elements: ElementSet }
      • optionaldrawing: DrawingSet
      • elements: ElementSet

    Returns UI.StandartWindow

createStorageInterface

fillTankOnClick

  • fillTankOnClick(tank: LiquidTank, item: ItemInstance, playerUid: number): boolean
  • Parameters

    • tank: LiquidTank
    • item: ItemInstance
    • playerUid: number

    Returns boolean

getMachineDrop

  • getMachineDrop(blockID: number, level: number): ItemInstanceArray[]
  • @deprecated

    Parameters

    • blockID: number
    • level: number

    Returns ItemInstanceArray[]

isMachine

  • isMachine(id: number): any
  • Parameters

    • id: number

    Returns any

isValidEUItem

  • isValidEUItem(id: number, count: number, data: number, container: Container): boolean
  • @deprecated

    Parameters

    • id: number
    • count: number
    • data: number
    • container: Container

    Returns boolean

isValidEUStorage

  • isValidEUStorage(id: number, count: number, data: number, container: Container): boolean
  • @deprecated

    Parameters

    • id: number
    • count: number
    • data: number
    • container: Container

    Returns boolean

registerElectricMachine

  • registerElectricMachine(id: number, Prototype: TileEntityPrototype): void
  • Parameters

    • id: number
    • Prototype: TileEntityPrototype

    Returns void

registerGenerator

  • registerGenerator(id: number, Prototype: TileEntityPrototype): void
  • Parameters

    • id: number
    • Prototype: TileEntityPrototype

    Returns void

registerPrototype

  • registerPrototype(id: number, Prototype: TileEntityPrototype): void
  • Parameters

    • id: number
    • Prototype: TileEntityPrototype

    Returns void

setMachineDrop

  • setMachineDrop(blockID: string | number, dropID?: number): void
  • Parameters

    • blockID: string | number
    • optionaldropID: number

    Returns void

setStoragePlaceFunction

  • setStoragePlaceFunction(blockID: string | number, hasVerticalRotation?: boolean): void
  • Parameters

    • blockID: string | number
    • optionalhasVerticalRotation: boolean

    Returns void

updateGuiHeader

  • updateGuiHeader(gui: any, text: string): void
  • Parameters

    • gui: any
    • text: string

    Returns void