Simple Idle AI type, entity just does nothing.

Hierarchy (view full)

Constructors

Methods

  • Disables any AI by it's name in the controller.

    Parameters

    • name: string

      AI name to be disabled

    Returns void

  • Enables any AI by it's name in the controller.

    Parameters

    • name: string

      AI name to be enables

    • priority: number

      priority to be set to the enabled AI

    • extra: any

      some extra data passed to

    Returns void

  • Sets execution timer time in ticks. AI will be executed specified number of ticks.

    Parameters

    • timer: number

      execution time in ticks

    Returns void

  • Sets any AI priority by it's name in the controller.

    Parameters

    • name: string

      AI name to change priority

    • priority: number

      priority to be set to the AI

    Returns void

Properties

data: object

Object containing the state of the AI type.

entity?: number

Numeric unique entity idenifier that uses this AI type instance or null if it is the pattern.

isInstance: boolean

If set to true, it is an instance of AI type, else the pattern (pattern should not be modified directly, AI controller calls instantiate to create instances of AI type).

params: object

All the parameters of the AI instance.

parent?: CustomEntity

Instantiated custom entity that uses this AI type instance or null if it is the pattern.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.