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

EnergyTypeRegistry

Index

Type Aliases

WireData

WireData: { class: typeof EnergyGrid; type: EnergyType; value: number }

Type declaration

Variables

energyTypes

energyTypes: {}

Type declaration

    wireData

    wireData: {}

    Type declaration

      Functions

      assureEnergyType

      • assureEnergyType(name: string, value: number): EnergyType
      • Parameters

        • name: string
        • value: number

        Returns EnergyType

      createEnergyType

      • createEnergyType(name: string, value: number): EnergyType
      • name - name of this energy type, value - value of one unit in [Eu] (IC2 Energy)


        Parameters

        • name: string
        • value: number

        Returns EnergyType

      getEnergyType

      getValueRatio

      • getValueRatio(name1: string, name2: string): number
      • Parameters

        • name1: string
        • name2: string

        Returns number

      getWireData

      • Parameters

        • blockID: number

        Returns WireData

      isWire

      • isWire(blockID: number, type?: string): boolean
      • Parameters

        • blockID: number
        • optionaltype: string

        Returns boolean

      registerWire

      • registerWire(blockID: number, type: EnergyType, maxValue: number, energyGridClass?: typeof EnergyGrid): void
      • Parameters

        Returns void