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

EntityHelper

Index

Functions

canTakeDamage

  • canTakeDamage(entity: number, damageSource: number): boolean
  • Parameters

    • entity: number
    • damageSource: number

    Returns boolean

getEntitiesInRadius

  • getEntitiesInRadius(region: WorldRegion, pos: Vector, rad: number): number[]
  • Parameters

    Returns number[]

isFriendlyMobType

  • isFriendlyMobType(type: number): boolean
  • Parameters

    • type: number

    Returns boolean

isHostileMobType

  • isHostileMobType(type: number): boolean
  • Parameters

    • type: number

    Returns boolean

isMob

  • isMob(entity: number): boolean
  • Parameters

    • entity: number

    Returns boolean

isOnGround

  • isOnGround(entity: number): boolean
  • Parameters

    • entity: number

    Returns boolean

isPlayer

  • isPlayer(entity: number): boolean
  • Parameters

    • entity: number

    Returns boolean

resetFallHeight

  • resetFallHeight(entity: number): void
  • Parameters

    • entity: number

    Returns void