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

LaserShot

Index

Constructors

constructor

  • new LaserShot(player: number, pos: Vector, vel: Vector, params: { blockBreaks?: number; dropChance?: number; power: number; range?: number; smelt?: boolean }): LaserShot
  • Parameters

    • player: number
    • pos: Vector
    • vel: Vector
    • params: { blockBreaks?: number; dropChance?: number; power: number; range?: number; smelt?: boolean }
      • optionalblockBreaks: number
      • optionaldropChance: number
      • power: number
      • optionalrange: number
      • optionalsmelt: boolean

    Returns LaserShot

Properties

blockBreaks

blockBreaks: number

dropChance

dropChance: number

entity

entity: number

hitBlock

hitBlock: boolean

player

player: number

power

power: number

range

range: number

region

region: WorldRegion

smelt

smelt: boolean

startPos

startPos: Vector

velocity

velocity: Vector

Methods

checkBlock

  • checkBlock(x: number, y: number, z: number): void
  • Parameters

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

    Returns void

destroyBlock

  • destroyBlock(x: number, y: number, z: number, block: Tile): void
  • Parameters

    • x: number
    • y: number
    • z: number
    • block: Tile

    Returns void

onProjectileHit

  • onProjectileHit(target: any): void
  • Parameters

    • target: any

    Returns void