Interface Rotatable

    • Method Detail

      • getRotation

        int getRotation()
        Gets the current rotation as an angle,
        Returns:
        the rotation
        See Also:
        Direction
      • isFacingMe

        boolean isFacingMe()
        Determines if the entity is facing the player.
        Returns:
        true if the entity is facing towards the player, false otherwise
      • isFacing

        boolean isFacing​(Locatable locatable)
        Determines if the entity is facing the given locatable.
        Parameters:
        locatable - the locatable
        Returns:
        true if the entity is facing towards the locatable, false otherwise