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

    Class EntityUtils

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Finds the hitbox dimensions and base corner location 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 EntityHitbox

      Object with hitbox size (bound) and corner location (location).