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

ICTool

Index

Functions

addRecipe

  • addRecipe(result: ItemInstance, data: { data: number; id: number }[], tool: number): void
  • Parameters

    • result: ItemInstance
    • data: { data: number; id: number }[]
    • tool: number

    Returns void

dischargeItem

  • dischargeItem(item: ItemInstance, consume: number, player: number): boolean
  • Parameters

    • item: ItemInstance
    • consume: number
    • player: number

    Returns boolean

getWrenchData

  • getWrenchData(id: number): IWrech
  • Parameters

    • id: number

    Returns IWrech

isUseableWrench

  • isUseableWrench(item: ItemInstance, damage?: number): boolean
  • Parameters

    • item: ItemInstance
    • optionaldamage: number

    Returns boolean

isWrench

  • isWrench(id: number): boolean
  • Parameters

    • id: number

    Returns boolean

registerElectricHoe

  • registerElectricHoe(stringID: string): void
  • @deprecated

    Parameters

    • stringID: string

    Returns void

registerElectricTreetap

  • registerElectricTreetap(stringID: string): void
  • @deprecated

    Parameters

    • stringID: string

    Returns void

registerWrench

  • registerWrench(id: number, properties: IWrech): void
  • Parameters

    Returns void

rotateMachine

  • rotateMachine(tileEntity: TileEntity, side: number, item: ItemStack, player: number): void
  • Parameters

    • tileEntity: TileEntity
    • side: number
    • item: ItemStack
    • player: number

    Returns void

setOnHandSound

  • setOnHandSound(itemID: number, idleSound: string, stopSound?: string): void
  • Parameters

    • itemID: number
    • idleSound: string
    • optionalstopSound: string

    Returns void

useElectricItem

  • useElectricItem(item: ItemInstance, consume: number, player: number): boolean
  • Parameters

    • item: ItemInstance
    • consume: number
    • player: number

    Returns boolean

useWrench

  • useWrench(item: ItemStack, damage: number, player: number): void
  • Parameters

    Returns void