Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TileEventManager

Hierarchy

Implements

Index

Properties

Readonly event

event: IEventEmitter<this, ITileManagerEvents> = new EventEmitter<this, E>(this)

Methods

blocksTile

  • blocksTile(tile: ITile): boolean
  • Parameters

    Returns boolean

canGather

  • Parameters

    Returns TileEvent | undefined

canPickup

  • Parameters

    Returns TileEvent | undefined

clearBlood

  • Parameters

    Returns boolean

clearPuddles

  • Clears all the water puddles on a specified tile.

    Parameters

    • point: IVector3

      The point to check for water puddles at.

    • executor: NPC | Player

      The player to send the message to.

    Returns boolean

containsDamagingTileEvents

  • containsDamagingTileEvents(events: TileEvent[] | undefined): boolean
  • Parameters

    Returns boolean

create

  • Parameters

    Returns TileEvent | undefined

createBlood

  • createBlood(x: number, y: number, z: number): boolean
  • Creates either blood or water blood

    Parameters

    • x: number

      X-axis of the tile where you want to spawn around (can be any adjacent tile)

    • y: number

      Y-axis of the tile where you want to spawn around (can be any adjacent tile)

    • z: number

      Z-axis of the tile where you want to spawn around (can be any adjacent tile)

    Returns boolean

    True if the blood was created, false if not

createFake

  • Parameters

    Returns TileEvent | undefined

fireOverflow

  • fireOverflow(x: number, y: number, z: number): boolean
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns boolean

get

getEventListTranslation

  • Parameters

    Returns Translation

getEventTranslations

  • Parameters

    Returns Stream<Translation>

getName

  • Parameters

    • typeOrEvent: CreatureType | TileEvent
    • Optional article: undefined | false | true
    • Optional count: undefined | number
    • Default value showCount: boolean = false

    Returns Translation

getPuddles

  • Gets an array of tile events that have the water property at a given tile.

    Parameters

    • tile: ITile

      ITile that you want to look at.

    Returns TileEvent[] | undefined

    Array of TileEvent or undefined if no tile events have the water property at the given tile.

moveExcrement

  • moveExcrement(position: IVector3): void
  • Parameters

    Returns void

remove

  • Parameters

    Returns void

updateAll

  • updateAll(): void
  • Returns void

Generated using TypeDoc