Options
All
  • Public
  • Public/Protected
  • All
Menu

Extension for InnerCore's Block module adding new methods or patching existing ones.

since

4.0

Index

Functions

  • getLightLevel(id: number, data?: number): number
  • since

    4.0

    Parameters

    • id: number
    • Optional data: number

    Returns number

    light level value for the block with given ID and data. If data parameter is omitted, it defaults to 0.

  • registerEntityStepOffFunction(id: string | number, func: EntityStepOnFunction): void
  • registerEntityStepOffFunctionForID(id: number, func: EntityStepOnFunction): void
  • Registers the function that will be called when an entity steps off a block with given numeric ID. The function has the same parameters as in Block.registerEntityStepOnFunction.

    since

    4.0

    Parameters

    • id: number
    • func: EntityStepOnFunction

    Returns void

  • setLightLevel(id: number, lightLevel: number): void
  • setLightLevel(id: number, data: number, lightLevel: number): void
  • Sets light level value for the block with given ID and data 0

    since

    4.0

    Parameters

    • id: number
    • lightLevel: number

      light level value for the block with given ID, clamped between 0 and 15 inclusively

    Returns void

  • Sets light level value for the block with given ID and data. Same as KEX.BlocksModule.setLightEmission.

    since

    4.0

    Parameters

    • id: number
    • data: number
    • lightLevel: number

      light level value for the block with given ID and data, clamped between 0 and 15 inclusively

    Returns void

Generated using TypeDoc