LaserShot
Index
Constructors
constructor
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
dropChance
entity
hitBlock
player
power
range
region
smelt
startPos
velocity
Methods
checkBlock
Parameters
x: number
y: number
z: number
Returns void
destroyBlock
Parameters
x: number
y: number
z: number
block: Tile
Returns void
onProjectileHit
Parameters
target: any
Returns void