@bedrock-oss/bedrock-boost
    Preparing search index...

    Class EntityUtils

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Finds the hitbox dimensions, base corner location, and offset of an entity.

      Parameters

      • entity: Entity

        The target entity.

      • OptionalmaxWidth: number

        Maximum search width (default: 5 blocks).

      • OptionalmaxHeight: number

        Maximum search height (default: 5 blocks).

      Returns null | EntityHitbox

      Object with hitbox size (bound), corner location (location), and offset. Returns null if invalid.